UNPKG

@opendatasoft/visualizations

Version:

Opendatasoft's components to easily build dashboards and visualizations.

24 lines (21 loc) 597 B
export type PageSizeOption = { label: string; value: number }; export type PageSizeSelect = { options: PageSizeOption[]; onChange: (size: number) => void; }; export type Pagination = { // position: 'top' | 'bottom' | 'both'; // style: 'select' | 'buttons'; current: number; totalRecords: number; recordsPerPage: number; onPageChange: (next: number) => void; pageSizeSelect?: PageSizeSelect; labels?: Partial<{ previousPage: string; nextPage: string; firstPage: string; lastPage: string; records: string; }>; };