Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. <div class="panel panel-default">
  2. <div class="panel-body">
  3. <accordion>
  4. <accordion-group is-open="item.open" ng-repeat="item in filterGroup | filter:searchText">
  5. <accordion-heading>
  6. <input type="checkbox" class="pull-left glyphicon" ng-click="filterHeaderClick(item.title, $event)" ng-model="master" value="{{item.title}}"/>{{ item.title }}
  7. <span class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': item.open, 'glyphicon-chevron-up': !item.open}"></span>
  8. </accordion-heading>
  9. <div ng-repeat="data in item.content">
  10. <input type="checkbox" class="pull-left glyphicon" ng-click="filterSubitemClick(data, item.title, $event)" ng-checked="master" value="{{data}}" />{{data}}
  11. </div>
  12. </accordion-group>
  13. </accordion>
  14. <div class="pull-right">
  15. <button type="button" class="btn btn-default btn-xs" ng-click="applyFilterClick($event)">Apply Filter</button>
  16. </div>
  17. </div>
  18. </div>
  19.  
  20. $scope.filterGroup = [{
  21. title: "Task Type",
  22. content: ["Task Type 1", "Task Type 2", "Task Type 3", "Task Type 4"],
  23. open: false,
  24. checked: false
  25.  
  26. }, {
  27. title: "Connectors",
  28. content: ["c1", "c2"],
  29. open: false,
  30. checked: false
  31. }, {
  32. title: "Schedules",
  33. content: ["s1", "s2"],
  34. open: false,
  35. checked: false
  36. }, {
  37. title: "Secure Agents",
  38. content: ["a1", "zmr"],
  39. open: false,
  40. checked: false
  41. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement