Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
feat: pagination
Browse files Browse the repository at this point in the history
Continuation of PR #93.
  • Loading branch information
JoaquinJimenezGarcia authored and diafour committed Jul 13, 2020
1 parent 4af775e commit 99ba3cb
Show file tree
Hide file tree
Showing 25 changed files with 1,223 additions and 34 deletions.
3 changes: 3 additions & 0 deletions dist/css/statusmap.dark.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/statusmap.dark.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/css/statusmap.light.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/statusmap.light.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions dist/extra_series_format.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/extra_series_format.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/img/tooltip-editor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/img/tooltip-url.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 22 additions & 2 deletions dist/module.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<div class="status-heatmap-wrapper">
<div class="clearfix"></div>
<br>
<div class="gf-form" ng-if="ctrl.panel.usingPagination">
<label class="gf-form-label width-9">Items per page</label>
<input type="number" class="gf-form-input width-5" placeholder="2" data-placement="right"
bs-tooltip="'Number of items to show per page.'" ng-model="ctrl.pageSizeViewer" ng-change="ctrl.changePaginationSize()"
ng-model-onblur>
</div>

<div class="status-heatmap-canvas-wrapper">

<div class="datapoints-warning" ng-if="ctrl.multipleValues || ctrl.noColorDefined || ctrl.noDatapoints">
Expand All @@ -7,8 +16,19 @@
<span class="small" ng-if="ctrl.noDatapoints" bs-tooltip="'{{ctrl.dataWarnings.noDatapoints.tip}}'">{{ctrl.dataWarnings.noDatapoints.title}}</span>
</div>


<div class="statusmap-panel" ng-dblclick="ctrl.zoomOut()"></div>
<div class="status-heatmap-panel" ng-dblclick="ctrl.zoomOut()"></div>
</div>
<div class="pagination" ng-if="ctrl.panel.usingPagination">
Showing {{ctrl.firstPageElement}} to {{ctrl.lastPageElement}} of {{ctrl.totalElements}} entries
<div class="pagination-buttons">
<button class="btn btn-inverse" ng-disabled="ctrl.currentPage == 0" ng-click="ctrl.currentPage=ctrl.currentPage-1; ctrl.render()">
Previous
</button>
{{ctrl.currentPage+1}}/{{ctrl.numberOfPages}}
<button class="btn btn-inverse" ng-disabled="ctrl.currentPage >= ctrl.cardsData.targets.length/ctrl.pageSizeViewer - 1 || ctrl.numberOfPages == 0" ng-click="ctrl.currentPage=ctrl.currentPage+1; ctrl.render()">
Next
</button>
</div>
</div>
<div class="status-heatmap-legend-wrapper" ng-if="ctrl.panel.legend.show">
<status-heatmap-legend></status-heatmap-legend>
Expand Down
118 changes: 116 additions & 2 deletions dist/module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/module.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 99ba3cb

Please sign in to comment.