Added order option to terms table

This commit is contained in:
Rashid Khan
2013-07-28 20:03:16 -07:00
parent b498e1975e
commit d2d4809ffe
4 changed files with 7 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

-1
View File
@@ -211,7 +211,6 @@ angular.module('kibana.table', [])
$scope.all_fields = kbn.get_all_fields(_.pluck($scope.data,'_source'));
fields.add_fields($scope.all_fields);
console.log(fields);
// If we're not sorting in reverse chrono order, query every index for
// size*pages results
+5 -1
View File
@@ -8,7 +8,11 @@
<label class="small">Length</label>
<input class="input-small" type="number" ng-model="panel.size" ng-change="set_refresh(true)">
</div>
<div class="span6">
<div class="span3">
<label class="small">Order</label>
<select class="input-medium" ng-model="panel.order" ng-options="f for f in ['count','term','reverse_count','reverse_term']" ng-change="set_refresh(true)"></select></span>
</div>
<div class="span4">
<label class="small">Exclude Terms(s) (comma seperated)</label>
<input array-join type="text" ng-model='panel.exclude'></input>
</div>
+2
View File
@@ -38,6 +38,7 @@ angular.module('kibana.terms', [])
missing : true,
other : true,
size : 10,
order : 'count',
style : { "font-size": '10pt'},
donut : false,
tilt : false,
@@ -83,6 +84,7 @@ angular.module('kibana.terms', [])
.facet($scope.ejs.TermsFacet('terms')
.field($scope.panel.field)
.size($scope.panel.size)
.order($scope.panel.order)
.exclude($scope.panel.exclude)
.facetFilter($scope.ejs.QueryFilter(
$scope.ejs.FilteredQuery(