Type Parameters
- FilterData extends {} = any
- RowData extends IRowData = any
Returns {
getChipData: (() => Exclude<Partial<Record<keyof RowData, boolean>>, undefined>);
getFilterData: (() => Exclude<Partial<FilterData>, undefined>);
getLimit: (() => number);
getPage: (() => number);
getSearch: (() => string);
getSortModel: (() => ListHandlerSortModel<RowData>);
listProps: {
chipData: undefined | Partial<Record<keyof RowData, boolean>>;
fallback: undefined | ((e: Error) => void);
filterData: undefined | Partial<FilterData>;
limit: undefined | number;
onChipsChange: ((data: Partial<Record<keyof RowData, boolean>>) => void);
onFilterChange: ((data: FilterData) => void);
onLimitChange: ((limit: number) => void);
onPageChange: ((page: number) => void);
onSearchChange: ((search: string) => void);
onSortModelChange: ((sort: ListHandlerSortModel<RowData>) => void);
page: undefined | number;
search: undefined | string;
sortModel: undefined | ListHandlerSortModel<RowData>;
};
setChipData: ((data: Partial<Record<keyof RowData, boolean>>) => void);
setFilterData: ((data: FilterData) => void);
setLimit: ((limit: number) => void);
setPage: ((page: number) => void);
setSearch: ((search: string) => void);
setSortModel: ((sort: ListHandlerSortModel<RowData>) => void);
}
An object containing the pagination props and methods.
getChipData: (() => Exclude<Partial<Record<keyof RowData, boolean>>, undefined>)
Returns Exclude<Partial<Record<keyof RowData, boolean>>, undefined>
getFilterData: (() => Exclude<Partial<FilterData>, undefined>)
getLimit: (() => number)
getPage: (() => number)
getSearch: (() => string)
getSortModel: (() => ListHandlerSortModel<RowData>)
Returns ListHandlerSortModel<RowData>
listProps: {
chipData: undefined | Partial<Record<keyof RowData, boolean>>;
fallback: undefined | ((e: Error) => void);
filterData: undefined | Partial<FilterData>;
limit: undefined | number;
onChipsChange: ((data: Partial<Record<keyof RowData, boolean>>) => void);
onFilterChange: ((data: FilterData) => void);
onLimitChange: ((limit: number) => void);
onPageChange: ((page: number) => void);
onSearchChange: ((search: string) => void);
onSortModelChange: ((sort: ListHandlerSortModel<RowData>) => void);
page: undefined | number;
search: undefined | string;
sortModel: undefined | ListHandlerSortModel<RowData>;
}
chipData: undefined | Partial<Record<keyof RowData, boolean>>
fallback: undefined | ((e: Error) => void)
filterData: undefined | Partial<FilterData>
limit: undefined | number
onChipsChange: ((data: Partial<Record<keyof RowData, boolean>>) => void)
Parameters
- data: Partial<Record<keyof RowData, boolean>>
Returns void
onFilterChange: ((data: FilterData) => void)
onLimitChange: ((limit: number) => void)
onPageChange: ((page: number) => void)
onSearchChange: ((search: string) => void)
onSortModelChange: ((sort: ListHandlerSortModel<RowData>) => void)
Parameters
- sort: ListHandlerSortModel<RowData>
Returns void
page: undefined | number
search: undefined | string
sortModel: undefined | ListHandlerSortModel<RowData>
setChipData: ((data: Partial<Record<keyof RowData, boolean>>) => void)
Parameters
- data: Partial<Record<keyof RowData, boolean>>
Returns void
setFilterData: ((data: FilterData) => void)
setLimit: ((limit: number) => void)
setPage: ((page: number) => void)
setSearch: ((search: string) => void)
setSortModel: ((sort: ListHandlerSortModel<RowData>) => void)
Parameters
- sort: ListHandlerSortModel<RowData>
Returns void
A hook that provides pagination functionality for querying data.