Added sorting

modified:   common/css/main.css
	modified:   config.js
	modified:   dashboards.js
	modified:   panels/stringquery/module.html
	modified:   panels/table/module.html
	modified:   panels/table/module.js
	modified:   partials/dashboard.html
	panels/sort/
This commit is contained in:
Rashid Khan
2013-01-31 20:23:34 -07:00
parent e54982d42d
commit 06b8dc3809
7 changed files with 64 additions and 31 deletions
+4 -1
View File
@@ -3,7 +3,10 @@
<div style="height:{{row.height}};overflow-y:auto;overflow-x:hidden">
<table class="table table-condensed table-striped">
<thead>
<th ng-repeat="field in panel.fields">{{field}}</th>
<th ng-repeat="field in panel.fields" class="pointer" ng-click="panel.sort[0] = field">
{{field}}
<i ng-show='field == panel.sort[0]' ng-click="toggle_sort()" class="pointer" ng-class="{'icon-chevron-up': panel.sort[1] == 'asc','icon-chevron-down': panel.sort[1] == 'desc'}"></i>
</th>
</thead>
<tr ng-repeat="row in data">
<td ng-repeat="field in panel.fields">{{row['_source'][field]}}</td>