Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Open a page in a table programmatically #453

Answered by mayank99
cfranklyn asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Chris 👋 Thanks for the question.

Assuming this programmatic selection is only on initial load, you can use the initialState prop where you can pass pageIndex.

<Table
  ...
  initialState={{ pageIndex: 2 }}
/>

If you need to do it after initial load, then you have two options:

Hope that helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cfranklyn
Comment options

Answer selected by cfranklyn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants