找回密码
 立即注册
相关推荐换一批
  1. 易语言大强学易批量读写配置文件源码
  2. discuz插件 [深蓝]跳蚤二手市场 多城市,无限类别 4.31
  3. GB/T 41681-2022管道用Y型铸铁过滤器
  4. QC/T 775-2007 乘用车类别及代码
  5. QC/T 836-2010 专用汽车类别及代码
  6. QB/T 5267-2018 空气净化器用静电式集尘过滤器
  7. QC/T 1008-2015 油箱通风用过滤器技术条件
  8. QC/T 1009-2015 乘用车自动变速器用过滤器技术条件
  9. GA 777.4-2008 指纹数据代码第4部分:被捺印指纹人员类别代码
  10. YY/T 0142-1994 一次性使用输液、输血器具用空气过滤器
  11. YY 0585. 3-2005/ISO 8536-11:2004 压力输液设备用一次性使用液路及附件 第3部分:过
  12. YY 0580-2005 心血管植入物及人工器官心肺转流系统动脉管路血液过滤器
  13. YY 0321. 3-2000 一次性使用麻醉用过滤器
  14. YY 0321.3-2009 一次性使用麻醉用过滤器
  15. YY/T 0753.2-2009/ISO 23328-2 :2002 麻醉和呼吸用呼吸系统过滤器 第2部分:非过滤方
  16. HG/T 3730-2004 工业水和冷却水净化处理滤网式全自动过滤器
  17. YY 1272-2016 透析液过滤器
  18. YY/T 1551.3-2017 输液、输血器具用空气过滤器 第3部分:完整性试验方法
  19. YY/T 1540-2017 医用I级生物安全柜核查指南
  20. YY/T 0908-2013 一次性使用注射用过滤器
  21. YY/T 0918-2014 药液过滤膜、药液过滤器细菌截留试验方法
  22. YY 0585.3-2018 压力输液设备用一次性使用液路及附件 第3部分:过滤器
  23. YY/T 0929.2-2018 输液用药液过滤器 第2部分:标称孔径1.2μm药液过滤器白色念珠菌截
FILTER类别过滤器expanded | 软件设计/软件工程 2022-05-06 429 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
问题
我认为这是一个长镜头,但希望有人能帮助我,下面是我认为我得到所有类别的部分,但我只想显示某些类别,而不是所有类别。在图像中,我有完整的分类,但我希望材料部分不出现,但在后台仍然具有搜索功能
  1. <div class="ng-cloak" ng-app="angularDemo" ng-cloak="">
  2.   <div ng-controller="angularController as ctrl">
  3.     <div class="hidden-xs" id="filter_desktop" layout="row">
  4.       <div class="container">
  5.         <div class="col-sm-2" style="padding-left: 0px;margin-left: -47px;margin-right: 46px;">  
  6.           <div class="filter" style="color: #999;font-weight: 100;font-size: 120%;margin-right: -60px;"><span>FILTER YOUR SEARCH</span></div>

  7.           <div class="resetFilter">
  8.             <center class="text-left" style="color: #999;"><button id="resetFilter" onclick="window.location.href='" type="button"><img alt="" src="/Data/Sites/1/media/collection/reset-icon-614x460.png" style="height: 30px!important;" />RESET FILTERS</button></center>
  9.           </div>

  10.           <div class="sidebar" style="border-top: 1px solid #c1c1c1;">
  11.             <div ng-repeat="filter in Filters" style="border-bottom: 1px solid #c1c1c1;">
  12.               <div class="col-sm-1" style="margin-right: -30px;"><button ng-click="filter.expanded = false" ng-if="filter.expanded" style="margin-left: 140px; background-color: transparent;border: none;font-size: 25px;margin-top: -34px;">+</button><button ng-click="filter.expanded = true" ng-if="!filter.expanded"
  13.                   style="margin-left: 140px;background-color: transparent;border: none;font-size: 45px;margin-top: -34px;">-</button></div>

  14.               <h3 class="sort" style="font-size: 18px;font-weight: 100;text-transform: uppercase;margin-bottom: 15px;">{{filter.name}}</h3>

  15.               <div class="sortoptions" style="margin-bottom: 15px;">
  16.                 <div data-hidden-checkbox="{{ filter.name == 'family'}}" ng-if="!filter.expanded" ng-repeat="option in filter.options | orderBy: 'value'" style="line-height: 1.6;"><input id="{{option.value}}" ng-checked="option.IsIncluded" ng-model="option.IsIncluded" style="margin-bottom: -1px!important;" type="checkbox" /> <label for="{{option.value}}">{{option.value}}</label></div>
  17.               </div>
  18.             </div>
  19.           </div>
  20.         </div>
复制代码

回答
在 codepen 示例中,只需添加

ng-if="filter.name !== 'color'"

遍历此处的过滤器列表( ng-repeat )。仅当过滤器的名称不是颜色时才会呈现 div。

这是最新的密码笔。





上一篇:如何在 ASP.NET Core 中启用 CORS
下一篇:在jQuery中获取复选框值