-
Couldn't load subscription status.
- Fork 213
docs: add tree grid scroll to item section #4654
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
Conversation
AI Language Review
|
|
|
||
| === Scrolling to an Item by Path | ||
|
|
||
| To use this feature, you need to specify the path of the item you want to view. The scroll position of the grid is adjusted to bring that item into view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| To use this feature, you need to specify the path of the item you want to view. The scroll position of the grid is adjusted to bring that item into view. | |
| You can also scroll to an item by providing its hierarchical path – an array of indexes where each index refers to a child of the item at the previous index. For example, to scroll to the second child-row (index 1) of the third root-level row (index 2), you would provide the path 2, 1. | |
| Scrolling continues until it reaches the last index in the array or encounters a collapsed item. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied suggestion.
src/main/java/com/vaadin/demo/component/treegrid/TreeGridScrollToItem.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>
a66915c to
bbd65ec
Compare
Adds
scrollToItemfeature to Tree Grid "Programmatic Scrolling" section.