UNPKG

@mui/x-data-grid

Version:

The community edition of the data grid component (MUI X).

28 lines (27 loc) 933 B
import { GridPaginationModel } from '../../../models/gridPaginationProps'; export interface GridPaginationState { paginationModel: GridPaginationModel; } export interface GridPaginationInitialState { paginationModel?: Partial<GridPaginationModel>; } /** * The pagination API interface that is available in the grid `apiRef`. */ export interface GridPaginationApi { /** * Sets the displayed page to the value given by `page`. * @param {number} page The new page number. */ setPage: (page: number) => void; /** * Sets the number of displayed rows to the value given by `pageSize`. * @param {number} pageSize The new number of displayed rows. */ setPageSize: (pageSize: number) => void; /** * Sets the `paginationModel` to a new value. * @param {GridPaginationModel} model The new model value. */ setPaginationModel: (model: GridPaginationModel) => void; }