package.build.lib.features.Pagination.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of table-core Show documentation
Show all versions of table-core Show documentation
Headless UI for building powerful tables & datagrids for TS/JS.
The newest version!
import { TableFeature } from '../core/table';
import { OnChangeFn, Table, RowModel, Updater, RowData } from '../types';
export interface PaginationState {
pageIndex: number;
pageSize: number;
}
export interface PaginationTableState {
pagination: PaginationState;
}
export interface PaginationInitialTableState {
pagination?: Partial;
}
export interface PaginationOptions {
pageCount?: number;
manualPagination?: boolean;
onPaginationChange?: OnChangeFn;
autoResetPageIndex?: boolean;
getPaginationRowModel?: (table: Table) => () => RowModel;
}
export interface PaginationDefaultOptions {
onPaginationChange: OnChangeFn;
}
export interface PaginationInstance {
_autoResetPageIndex: () => void;
setPagination: (updater: Updater) => void;
resetPagination: (defaultState?: boolean) => void;
setPageIndex: (updater: Updater) => void;
resetPageIndex: (defaultState?: boolean) => void;
setPageSize: (updater: Updater) => void;
resetPageSize: (defaultState?: boolean) => void;
setPageCount: (updater: Updater) => void;
getPageOptions: () => number[];
getCanPreviousPage: () => boolean;
getCanNextPage: () => boolean;
previousPage: () => void;
nextPage: () => void;
getPrePaginationRowModel: () => RowModel;
getPaginationRowModel: () => RowModel;
_getPaginationRowModel?: () => RowModel;
getPageCount: () => number;
}
export declare const Pagination: TableFeature;
© 2015 - 2024 Weber Informatics LLC | Privacy Policy