Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in pagination.md #5508

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/guide/pagination.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const table = useReactTable({

### Pagination State

Whether or not you are using client-side or manual server-side pagination, you can use the built-in `pagination` state state and APIs.
Whether or not you are using client-side or manual server-side pagination, you can use the built-in `pagination` state and APIs.

The `pagination` state is an object that contains the following properties:

Expand Down Expand Up @@ -170,14 +170,14 @@ There are several pagination table instance APIs that are useful for hooking up
- `nextPage`: Useful for going to the next page. (Button click handler)
- `firstPage`: Useful for going to the first page. (Button click handler)
- `lastPage`: Useful for going to the last page. (Button click handler)
- `setPageIndex`: uUseful for a "go to page" input.
- `setPageIndex`: Useful for a "go to page" input.
- `resetPageIndex`: Useful for resetting the table state to the original page index.
- `setPageSize`: Useful for a "page size" input/select
- `setPageSize`: Useful for a "page size" input/select.
- `resetPageSize`: Useful for resetting the table state to the original page size.
- `setPagination`: Useful for setting all of the pagination state at once.
- `resetPagination`: Useful for resetting the table state to the original pagination state.

> **Note**: Some of these APIs are new in `v8.13.0`
> **Note**: Some of these APIs are new in `v8.13.0`.

```jsx
<Button
Expand All @@ -204,7 +204,7 @@ There are several pagination table instance APIs that are useful for hooking up
>
{'>>'}
</Button>
<select
<select
value={table.getState().pagination.pageSize}
onChange={e => {
table.setPageSize(Number(e.target.value))
Expand Down