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

Ant Design Table: Add API to programmatically scroll (using scroll:y table) a given row into view (by row key) to ensure that it is visible #32392

Closed
1 task done
thelazydogsback opened this issue Oct 7, 2021 · 2 comments

Comments

@thelazydogsback
Copy link

thelazydogsback commented Oct 7, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

When orchestrating master/detail or other synchronized views, need to be able to scroll row into view when current item is selected elsewhere in the app's UI

What does the proposed API look like?

table.scrollIntoView(rowKey, location?)
where optional location is 'top' or 'center' or a row index number (0..scrollY)

or

let index = table.getRowIndex(rowKey);
table.scrollYTo(index, location?)

which is more general

@thelazydogsback
Copy link
Author

Or am I missing a way to do this already??

@thelazydogsback
Copy link
Author

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

No branches or pull requests

1 participant