Advertisement
Guest User

multiselectFacet.tmpl.html

a guest
Jun 2nd, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.25 KB | None | 0 0
  1. <!-- This is just for a multiselect facet, the others are similar but there's no real "superclass" I can show you -->
  2.  
  3. <section tt-focus-container tt-focus-order="{{$index}}"
  4.          tt-on-start-of-container="containerBegin(facetController.facet)"
  5.         tt-on-end-of-container="containerEnd(facetController.facet)"
  6.         id="facet-{{facetController.facet.Name}}">
  7.     <div flex layout="row">
  8.         <header class="tt-subheader" style="margin:1.6rem 1.6rem 0 1.6rem;">
  9.             {{facetController.facet.Name}}
  10.         </header>
  11.         <span flex></span>
  12.         <md-button class="md-icon-button" ng-click="facetController.filterExpanded = !facetController.filterExpanded">
  13.             <md-icon class="card-toolbar-view-more-icon" md-font-set="material-icons" ng-show="!facetController.filterExpanded">expand_more</md-icon>
  14.             <md-icon class="card-toolbar-view-more-icon" md-font-set="material-icons" ng-show="facetController.filterExpanded">expand_less</md-icon>
  15.         </md-button>
  16.     </div>
  17.     <md-list ng-show="facetController.filterExpanded">
  18.         <md-list-item ng-repeat="bucket in facetController.facet.Buckets | orderBy: '-Count' | filter:{bucket: Selected}" ng-if="facetController.facet.isShowingMore || $index < 5">
  19.             <md-checkbox class="md-primary" ng-model="bucket.Selected" tt-focus-order="0" tt-focus-item></md-checkbox>
  20.             <div class="md-list-item-text" layout="row" flex>
  21.                 <p layout="row" flex>
  22.                     <span flex>{{bucket.Key}}</span>
  23.                     <span>
  24.                         <span class="badge" ng-show="bucket.Count > 0">{{bucket.Count}}</span>
  25.                     </span>
  26.                 </p>
  27.             </div>
  28.         </md-list-item>
  29.         <md-list-item ng-click="facetController.facet.isShowingMore = !facetController.facet.isShowingMore" ng-if="facetController.facet.Buckets.length > 5" tt-focus-item tt-focus-order="1"
  30.             aria-label="Show More">
  31.             <p ng-if="facetController.facet.isShowingMore == null || facetController.facet.isShowingMore == false"><b>+ Show More</b></p>
  32.             <p ng-if="facetController.facet.isShowingMore != null && facetController.facet.isShowingMore == true"><b>- Show Less</b></p>
  33.         </md-list-item>
  34.         <div flex layout="row">
  35.             <md-button ng-click="facetController.clearFilter(facet)">Clear All</md-button>
  36.             <span flex></span>
  37.             <md-button ng-click="facetController.applyFilter(facet)">Apply</md-button>
  38.         </div>
  39.     </md-list>
  40. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement