A helper function to scroll to top.
In TableView when pagination, sorting or filter change, then it will scroll to top.
This improves UX a lot when you have a long list of items and then change pagination in the bottom of the screen, as it before would stay in the bottom of the screen, and you would manually have to scroll to the top of the screen.
A future improvement to this feature, could be to scroll to top of table instead of top of window.
Breaking changes?
The feature will be enabled by default, so if you want to disable it, then you can use the disableScrollToTopOnChange.
Scroll to top
What are you adding?
A helper function to scroll to top. In TableView when pagination, sorting or filter change, then it will scroll to top. This improves UX a lot when you have a long list of items and then change pagination in the bottom of the screen, as it before would stay in the bottom of the screen, and you would manually have to scroll to the top of the screen.
A future improvement to this feature, could be to scroll to top of table instead of top of window.
Breaking changes?
The feature will be enabled by default, so if you want to disable it, then you can use the
disableScrollToTopOnChange
.Related PR