@opendatasoft/visualizations
Version:
Opendatasoft's components to easily build dashboards and visualizations.
23 lines (22 loc) • 524 B
TypeScript
export type PageSizeOption = {
label: string;
value: number;
};
export type PageSizeSelect = {
options: PageSizeOption[];
onChange: (size: number) => void;
};
export type Pagination = {
current: number;
totalRecords: number;
recordsPerPage: number;
onPageChange: (next: number) => void;
pageSizeSelect?: PageSizeSelect;
labels?: Partial<{
previousPage: string;
nextPage: string;
firstPage: string;
lastPage: string;
records: string;
}>;
};