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

Add onPageSizeChange listener in InMemoryTable #923

Closed
timroes opened this issue Jun 13, 2018 · 2 comments
Closed

Add onPageSizeChange listener in InMemoryTable #923

timroes opened this issue Jun 13, 2018 · 2 comments
Assignees

Comments

@timroes
Copy link
Contributor

timroes commented Jun 13, 2018

It would be nice to have an onPageSizeChange listener in the in memory table, that allows to get notified about changes in the pagination (the same as we have for search). That way we are able to store the page in the uiState or keep it over unmounting and mounting a table.

@chandlerprall
Copy link
Contributor

Sounds like you'd like to be able to programatically set the page size after initial render as well?

@timroes
Copy link
Contributor Author

timroes commented Jun 13, 2018

Not necessarily. Currently it's more about storing that state so we can set it again when coming back to the component (e.g. we store that in the URL when you switch it on a table vis, and when you refresh it should still be there), but that is already doable with the initialPageSize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants