# paginationChanged

Emitted when the page or page size changes. Synchronize external page indicators.

Canonical: https://grid.syidax.com/docs/events/paginationChanged/

<a id="meaning"></a>

## What does this API do?

Emitted when the page or page size changes. Synchronize external page indicators.

<a id="contract"></a>

## Exact input and result types

```typescript
paginationChanged: GridPaginationChangedDetail
```

<a id="usage"></a>

## Usage flow

Subscribe with grid.addEventListener('paginationChanged', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

```javascript
const controller = new AbortController();
grid.addEventListener('paginationChanged', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();
```

<a id="types"></a>

## Read related types

- [GridPaginationChangedDetail](https://grid.syidax.com/docs/types/GridPaginationChangedDetail.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Page navigation](https://grid.syidax.com/docs/features/pagination.md) — Pagination controls the number of displayed rows and the current page position. Total data size and page size are separate settings.
