added sorting

This commit is contained in:
Rashid Khan
2013-01-31 20:24:27 -07:00
parent 06b8dc3809
commit 896a6f7c10
2 changed files with 29 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
<div ng-controller='sort'>
<h4 ng-hide="_.isUndefined(panel.title)">{{panel.title}}</h4>
<select ng-model="panel.sort[0]" ng-options="f for f in fields"></select>
<i ng-click="toggle_sort()" ng-class="{'icon-chevron-up': panel.sort[1] == 'asc','icon-chevron-down': panel.sort[1] == 'desc'}"></i>
</div>