-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
512c11d
commit bab3bdd
Showing
2 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
13 changes: 8 additions & 5 deletions
13
...components/src/pagination/src/components/osds-pagination/constants/pagination-per-page.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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
const ODS_PAGINATION_PER_PAGE_MIN = 10; | ||
const ODS_PAGINATION_PER_PAGE_MAX = 300; | ||
const ODS_PAGINATION_PER_PAGE_OPTIONS = Object.freeze([ODS_PAGINATION_PER_PAGE_MIN, 25, 50, 100, ODS_PAGINATION_PER_PAGE_MAX]); | ||
type ODS_PAGINATION_PER_PAGE = typeof ODS_PAGINATION_PER_PAGE_OPTIONS[number]; | ||
|
||
export enum ODS_PAGINATION_PER_PAGE { | ||
MIN = ODS_PAGINATION_PER_PAGE_MIN, | ||
OPTION_25 = 25, | ||
OPTION_50 = 50, | ||
OPTION_100 = 100, | ||
MAX = ODS_PAGINATION_PER_PAGE_MAX | ||
} | ||
|
||
export { | ||
ODS_PAGINATION_PER_PAGE_MAX, | ||
ODS_PAGINATION_PER_PAGE_MIN, | ||
ODS_PAGINATION_PER_PAGE_OPTIONS, | ||
}; | ||
|
||
export type { | ||
ODS_PAGINATION_PER_PAGE, | ||
}; |
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