# DataGridPaging (@salmonui/data-grid)

> The DataGridPaging interface of @salmonui/data-grid: paging prop.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridPaging

```ts
import type { DataGridPaging } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: interface

```ts
interface DataGridPaging {
    page?: number;
    pageSize?: number;
    buttonCount?: number;
    pageSizeOptions?: boolean | readonly (number | 'all')[];
    syncUrl?: boolean | {
        readonly param?: string;
    };
    totalRowCount?: number;
}
```

`paging` prop.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `page` | `page?: number;` | optional | 1-based. Default 1. |
| `pageSize` | `pageSize?: number;` | optional | Default 12. |
| `buttonCount` | `buttonCount?: number;` | optional | Numeric page buttons shown at once. Default 8. |
| `pageSizeOptions` | `pageSizeOptions?: boolean \| readonly (number \| 'all')[];` | optional | Page size dropdown: `true` for `['all', 5, 10, 12, 20]`, or the options (`'all'` for every row). Default false. |
| `syncUrl` | `syncUrl?: boolean \| {     readonly param?: string; };` | optional | Keeps the page in the URL query string. Opt-in. After mount the grid reads the parameter (default `page`) and goes to that page, then writes page changes with `history.replaceState` (no history entries). The server renders `page`; pass the parameter as `page` from the request to render the same page on the server. Read on mount only. |
| `totalRowCount` | `totalRowCount?: number;` | optional | 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. |
