API reference: @salmonui/data-grid
DataGridPaginginterface
import type { DataGridPaging } from '@salmonui/data-grid';interface DataGridPaging {
page?: number;
pageSize?: number;
buttonCount?: number;
pageSizeOptions?: boolean | readonly (number | 'all')[];
syncUrl?: boolean | {
readonly param?: string;
};
totalRowCount?: number;
}
paging prop.
| Name | Signature | Description |
|---|---|---|
pageoptional | page?: number; | 1-based. Default 1. |
pageSizeoptional | pageSize?: number; | Default 12. |
buttonCountoptional | buttonCount?: number; | Numeric page buttons shown at once. Default 8. |
pageSizeOptionsoptional | pageSizeOptions?: boolean | readonly (number | 'all')[]; | Page size dropdown: |
syncUrloptional | syncUrl?: boolean | {
readonly param?: string;
}; | Keeps the page in the URL query string.
Opt-in. After mount the grid reads the parameter (default |
totalRowCountoptional | totalRowCount?: number; | Total row count for the pager when the data source pages remotely and reports no total (or a wrong one); wins over the source's total. Reactive. Ignored when paging runs locally. |