All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.build.lib.features.Pagination.d.ts Maven / Gradle / Ivy

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