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

Ability to scroll a specific item in a tree into view #644

Closed
jrafidi opened this issue Feb 8, 2017 · 1 comment
Closed

Ability to scroll a specific item in a tree into view #644

jrafidi opened this issue Feb 8, 2017 · 1 comment

Comments

@jrafidi
Copy link
Contributor

jrafidi commented Feb 8, 2017

Would like to be able to scroll a specific item in a tree into view. This is useful for any feature where interactions outside of the tree need to reveal something inside of the tree. Couldn't find a way to do it using the existing component.

@jkillian
Copy link
Contributor

Talked this over with @giladgray and decided to go about it this way:

  • Add a Tree#getNodeRef function to core Blueprint
  • Application code can then implement this functionality themselves:
    • expand all parents of a given node
    • call myTreeRef.getNodeRef("myNode").scrollIntoView()

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