mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
paginate the fields with the paginate directive
This commit is contained in:
parent
b923a3db5d
commit
26efcd482d
1 changed files with 30 additions and 46 deletions
|
@ -42,53 +42,37 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-hide="tablePages() == 1">
|
||||
<center>
|
||||
<button
|
||||
ng-disabled="table.page == 0"
|
||||
ng-click="table.page=table.page-1"
|
||||
class="btn btn-sm" >
|
||||
Previous
|
||||
</button>
|
||||
{{table.page+1}}/{{tablePages()}}
|
||||
<button
|
||||
ng-disabled="table.page >= indexPattern.fields.length/table.max - 1"
|
||||
ng-click="table.page=table.page+1"
|
||||
class="btn btn-sm" >
|
||||
Next
|
||||
</button>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<th ng-click="setFieldSort('name')">name <i ng-class="sortClass('name')"></i></th>
|
||||
<th ng-click="setFieldSort('type')">type <i ng-class="sortClass('type')"></i></th>
|
||||
</thead>
|
||||
<tr
|
||||
ng-repeat="field in indexPattern.fields
|
||||
| orderBy:table.by:table.reverse
|
||||
| startFrom:table.page*table.max
|
||||
| limitTo:table.max">
|
||||
<td>
|
||||
<span bo-text="field.name"></span>
|
||||
|
||||
<span
|
||||
bo-if="indexPattern.timeFieldName === field.name"
|
||||
tooltip="This field represents the time that events occured"
|
||||
class="label label-default">
|
||||
<i class="fa fa-clock-o"></i>
|
||||
</span>
|
||||
</td>
|
||||
<paginate list="indexPattern.fields" per-page="20">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<th ng-click="setFieldSort('name')">name <i ng-class="sortClass('name')"></i></th>
|
||||
<th ng-click="setFieldSort('type')">type <i ng-class="sortClass('type')"></i></th>
|
||||
</thead>
|
||||
<tr
|
||||
ng-repeat="field in page
|
||||
| orderBy:table.by:table.reverse
|
||||
| startFrom:table.page*table.max
|
||||
| limitTo:table.max">
|
||||
<td>
|
||||
<span bo-text="field.type"></span>
|
||||
<i
|
||||
bo-if="field.type == 'conflict'"
|
||||
tooltip="The type of this field changes across indices. It is unavailable for many analysis functions"
|
||||
class="fa fa-warning text-color-warning"></i>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<span bo-text="field.name"></span>
|
||||
|
||||
<span
|
||||
bo-if="indexPattern.timeFieldName === field.name"
|
||||
tooltip="This field represents the time that events occured"
|
||||
class="label label-default">
|
||||
<i class="fa fa-clock-o"></i>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span bo-text="field.type"></span>
|
||||
<i
|
||||
bo-if="field.type == 'conflict'"
|
||||
tooltip="The type of this field changes across indices. It is unavailable for many analysis functions"
|
||||
class="fa fa-warning text-color-warning"></i>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</paginate>
|
||||
</div>
|
||||
</kbn-settings-indices>
|
||||
</kbn-settings-app>
|
Loading…
Add table
Add a link
Reference in a new issue