You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the rsuite table and the rsuite pagination components (sweet components 馃憦).
I'm facing a situation where I need to scroll to the top the table after click moving from one page to the other.
I see the scrollTop table method but I'm not too sure how to use it.
I also see the shouldUpdateScroll props which I tried with the code below but it doesn't seem to scroll to the top:
shouldUpdateScroll={true};
Any idea?
The text was updated successfully, but these errors were encountered:
You trigger scrollTop(0) every time you click on the pagination, you can go back to the top of the table. About shouldUpdateScroll is to reset the scroll bar position after the size of the table changes, or the number of rows of data in the table changes.
What problem does this feature solve?
I'm using the rsuite table and the rsuite pagination components (sweet components 馃憦).
I'm facing a situation where I need to scroll to the top the table after click moving from one page to the other.
I see the
scrollTop
table method but I'm not too sure how to use it.I also see the
shouldUpdateScroll
props which I tried with the code below but it doesn't seem to scroll to the top:Any idea?
The text was updated successfully, but these errors were encountered: