# PagerTemplateContext (@salmonui/navigation/pager)

> The PagerTemplateContext interface of @salmonui/navigation/pager: renderPager context: the render context plus the built-in pager content.

Canonical: https://salmonui.dev/docs/reference/navigation/pager/PagerTemplateContext

```ts
import type { PagerTemplateContext } from '@salmonui/navigation/pager';
```

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

## Reference

Kind: interface

```ts
interface PagerTemplateContext extends PagerRenderContext {
    readonly defaultPager: ReactElement;
}
```

`renderPager` context: the render context plus the built-in pager content.

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `defaultPager` | `readonly defaultPager: ReactElement;` |  |  |
| `page` | `page: number;` | inherited |  |
| `pageSize` | `pageSize: number;` | inherited |  |
| `pageCount` | `pageCount: number \| null;` | inherited | `null` while the total is unknown (`totalCount={null}`). |
| `totalCount` | `totalCount: number \| null;` | inherited |  |
| `hasNextPage` | `hasNextPage: boolean;` | inherited |  |
| `goToPage` | `goToPage: (page: number) => void;` | inherited | Goes to a page (clamped) through the same before / after events, `source: 'api'`. |
| `setPageSize` | `setPageSize: (pageSize: number \| "all") => void;` | inherited | Sets the page size (`'all'` = the total) through the same events, `source: 'api'`. |
