forked from patternfly/angular-patternfly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsort.html
More file actions
18 lines (18 loc) · 730 Bytes
/
Copy pathsort.html
File metadata and controls
18 lines (18 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div class="sort-pf">
<div uib-dropdown class="btn-group">
<button uib-dropdown-toggle type="button" class="btn btn-default">
{{$ctrl.config.currentField.title}}
<span class="caret"></span>
</button>
<ul uib-dropdown-menu>
<li ng-repeat="item in $ctrl.config.fields" ng-class="{'selected': item === $ctrl.config.currentField}">
<a href="javascript:void(0);" class="sort-field" role="menuitem" tabindex="-1" ng-click="$ctrl.selectField(item)">
{{item.title}}
</a>
</li>
</ul>
</div>
<button class="btn btn-link" type="button" ng-click="$ctrl.changeDirection()">
<span class="sort-direction" ng-class="$ctrl.getSortIconClass()"></span>
</button>
</div>