-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #284 from ghiscoding/feat/custom-footer
feat(footer): add custom footer to show metrics
- Loading branch information
Showing
36 changed files
with
483 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 31 additions & 4 deletions
35
src/aurelia-slickgrid/custom-elements/aurelia-slickgrid.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,40 @@ | ||
<template> | ||
<div id="slickGridContainer-${gridId}" class="gridPane" css="width: ${gridWidth}px"> | ||
<div id.bind="gridId" class="slickgrid-container" style="width: 100%" css="height: ${gridHeight}px" | ||
focusout.delegate="commitEdit($event.target)"> | ||
focusout.delegate="commitEdit($event.target)"> | ||
</div> | ||
|
||
<!-- Pagination section under the grid --> | ||
<slick-pagination id="slickPagingContainer-${gridId}" if.bind="showPagination" | ||
asg-on-pagination-changed.delegate="paginationChanged($event.detail)" dataview.bind="dataview" grid.bind="grid" | ||
enable-translate.bind="gridOptions.enableTranslate" options.bind="paginationOptions" locales.bind="locales" | ||
total-items.bind="totalItems" backend-service-api.bind="backendServiceApi"> | ||
asg-on-pagination-changed.delegate="paginationChanged($event.detail)" dataview.bind="dataview" | ||
grid.bind="grid" | ||
enable-translate.bind="gridOptions.enableTranslate" options.bind="paginationOptions" | ||
locales.bind="locales" | ||
total-items.bind="totalItems" backend-service-api.bind="backendServiceApi"> | ||
</slick-pagination> | ||
|
||
<!-- Custom Footer section under the grid --> | ||
<div if.bind="showCustomFooter && customFooterOptions" class="slick-custom-footer" style="width: 100%;" | ||
css="height: ${customFooterOptions.footerHeight || 20}px"> | ||
<span class="left-footer ${customFooterOptions.leftContainerClass}"> | ||
${customFooterOptions.leftFooterText} | ||
</span> | ||
|
||
<span class="right-footer metrics ${customFooterOptions.rightContainerClass}" | ||
if.bind="metrics && !customFooterOptions.hideMetrics"> | ||
<span if.bind="!customFooterOptions.hideLastUpdateTimestamp"> | ||
<span>${customFooterOptions.metricTexts.lastUpdate}</span> | ||
|
||
${metrics.endTime | asgDateFormat: customFooterOptions.dateFormat} | ||
<span class="separator">${customFooterOptions.metricSeparator}</span> | ||
</span> | ||
|
||
${metrics.itemCount} | ||
<span if.bind="!customFooterOptions.hideTotalItemCount">${customFooterOptions.metricTexts.of} | ||
${metrics.totalItemCount} | ||
</span> | ||
${customFooterOptions.metricTexts.items} | ||
</span> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.