UNPKG

@funnelback/ng-sds

Version:

`@funnelback/ng-sds` is Bootstrap 5 based library that aims to implement the [Squiz Design System specification](https://designsystem.squiz.net/) in Angular.

42 lines (41 loc) 1.13 kB
export type SdsTableSize = 'sm'; export type SortFunction = (rows: any) => string; export type TableSortMethod = string | SortFunction | 'SdsDefaultSort'; export declare enum SortOrder { NONE = 0, ASC = 1, DESC = 2 } export interface SortConfig { order: SortOrder; getter: SortFunction; } export declare class SdsTablePagination { static DEFAULT_PAGINATION_PER_PAGE: number; static PAGINATION_SHOW_ALL: number; } export interface SdsTablePaginationInput { page: number; itemsPerPage: number; } export interface SdsTablePaginationOutput extends SdsTablePaginationInput { showPagination: boolean; totalNumberOfItems: number; } export interface SdsTablePaginationOption { itemsPerPage: number; label: string; } export interface SdsPaginationDisplay { start: number; finish: number; totalItems: number; } export interface SdsPaginationLabelConfig { paginationSize?: string; paginationDisplay?: (paginationDisplay: SdsPaginationDisplay) => string; optionDisplay?: (option: number) => string; previousPage?: string; nextPage?: string; all?: string; }