@sinchsmb/ui-kit
Version:
UI kit for SinchSMB frontend
27 lines (22 loc) • 686 B
text/typescript
/** Selection mode that supported by {@link Table} */
export enum TableSelectionType {
/** All rows will be selected expect rows in {@link TableSelection.unselectedIds} */
Exclude = 'exclude',
/** Only rows in {@link TableSelection.selectedIds} will be selected */
Include = 'include',
}
/** Sort order */
export enum SortOrder {
/** Ascending sort order */
Asc = 'asc',
/** Descending sort order */
Desc = 'desc',
}
/** Header height in px */
export const HEADER_HEIGHT = 40;
/** One row height in px */
export const ROW_HEIGHT = 50;
/**
* Maximum table body height in px with sticky header and footer.
*/
export const STICKY_OFFSET = HEADER_HEIGHT + ROW_HEIGHT;