-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(footer): add custom footer to show metrics
- this footer is typically only available when user is not using a Backend Service since they show the same kind of info
- Loading branch information
1 parent
6f375c9
commit 2054319
Showing
13 changed files
with
171 additions
and
5 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
28 changes: 28 additions & 0 deletions
28
src/app/modules/angular-slickgrid/models/customFooterOption.interface.ts
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export interface CustomFooterOption { | ||
/** Optionally pass some text to be displayed on the left side (in the "left-footer" css class) */ | ||
leftFooterText?: string; | ||
|
||
/** Date format used when showing the startTime/endTime metrics on screen */ | ||
dateFormat?: string; | ||
|
||
/** Defaults to false, do we want to hide the last updated timestamp (endTime)? */ | ||
hideLastUpdatedTimestamp?: boolean; | ||
|
||
/** Defaults to false, do we want to hide the metrics when the footer is displayed? */ | ||
hideMetrics?: boolean; | ||
|
||
/** Defaults to false, do we want to hide the total item count of the entire dataset (the count exclude any filtered data) */ | ||
hideTotalItemCount?: boolean; | ||
|
||
/** Defaults to "|", separator between the timestamp and the total count */ | ||
metricSeparator?: string; | ||
|
||
metricTexts?: { | ||
/** Optionally pass a text to display before the metrics endTime timestamp shown in the footer */ | ||
lastUpdatedText?: string; | ||
|
||
textItems: string; | ||
textLastUpdated?: string; | ||
textOf: string; | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
src/app/modules/angular-slickgrid/styles/slick-footer.scss
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.slick-custom-footer { | ||
color: $footer-text-color; | ||
padding: $footer-padding; | ||
background-color: $footer-bg-color; | ||
font-style: $footer-font-style; | ||
font-weight: $footer-font-weight; | ||
|
||
.left-footer { | ||
font-style: $footer-left-font-style; | ||
font-weight: $footer-left-font-weight; | ||
text-align: $footer-left-text-align; | ||
} | ||
|
||
.metrics { | ||
text-align: $footer-metrics-text-align; | ||
font-style: $footer-metrics-font-style; | ||
font-weight: $footer-metrics-font-weight; | ||
text-align: $footer-metrics-text-align; | ||
} | ||
} |
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