Files
Vlad Durnea cffdf8af86
Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
wip:milestone 0 fixes
2026-03-15 12:35:42 +02:00

45 lines
1.4 KiB
TypeScript

import { GridPaginationModel } from '../../../models/gridPaginationProps';
export interface GridPaginationState {
paginationModel: GridPaginationModel;
rowCount: number;
}
export interface GridPaginationInitialState {
paginationModel?: Partial<GridPaginationModel>;
rowCount?: number;
}
/**
* The pagination model API interface that is available in the grid `apiRef`.
*/
export interface GridPaginationModelApi {
/**
* 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;
}
/**
* The pagination row count API interface that is available in the grid `apiRef`.
*/
export interface GridPaginationRowCountApi {
/**
* Sets the `rowCount` to a new value.
* @param {number} rowCount The new row count value.
*/
setRowCount: (rowCount: number) => void;
}
/**
* The pagination API interface that is available in the grid `apiRef`.
*/
export interface GridPaginationApi extends GridPaginationModelApi, GridPaginationRowCountApi {
}