@npm.tangocode/tc_ui_components
Version:
[<img src="https://s3.amazonaws.com/tc-ui-components/documentationImages/tangoCodeLogo.png">](https://tangocode.com/) # TangoCode React UI Components #
26 lines (22 loc) • 790 B
text/typescript
export const PAGER_ELEMENT = {
NEXT_SET: 'NEXT_SET',
PREVIOUS_SET:'PREVIOUS_SET',
NEXT_PAGE: 'NEXT_PAGE',
PREVIOUS_PAGE: 'PREVIOUS_PAGE',
FIRST_PAGE: 'FIRST_PAGE',
LAST_PAGE: 'LAST_PAGE',
};
export interface Control {
action: string,
display:string
};
export const PrevControls: Control[] = [
{action: PAGER_ELEMENT.FIRST_PAGE, display: "<<"},
{action: PAGER_ELEMENT.PREVIOUS_PAGE, display: "<"}
];
export const NextControls: Control[] = [
{action: PAGER_ELEMENT.NEXT_PAGE, display: ">"},
{action: PAGER_ELEMENT.LAST_PAGE, display: ">>"}
];
export const PrevSetControl: Control = { action: PAGER_ELEMENT.PREVIOUS_SET, display: "•••" };
export const NextSetControl: Control = { action: PAGER_ELEMENT.NEXT_SET, display: "•••" };