UNPKG

@vlsergey/react-bootstrap-pagetable

Version:

Complex solution to work with pageable data, including sorting, filtering, actions, changing displayed columns, etc.

18 lines 587 B
export declare type Direction = 'ASC' | 'DESC'; export interface SortBy { field: string; direction?: Direction; } interface FetchArgs { /** 0-based page to fetch */ page: number; /** Max number of items per page to fetch */ size: number; filter?: Record<string, unknown>; /** Sort by field. If multiple fields are specified sort done in order is from last to first. (i.e. reversed before put in (for example) ORDER BY clause of SQL query) */ sort?: SortBy[]; } export default FetchArgs; //# sourceMappingURL=FetchArgs.d.ts.map