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

Is its possible to focus multiple nodes #47

Closed
carmenbranje opened this issue Sep 12, 2016 · 8 comments
Closed

Is its possible to focus multiple nodes #47

carmenbranje opened this issue Sep 12, 2016 · 8 comments

Comments

@carmenbranje
Copy link

I'd like to filter the nodes, and focus all the nodes that satisfy the filter. Is that possible to do?

@adamkleingit
Copy link
Contributor

Hi,
when you say focus, what do you mean?

Currently filtering marks all nodes that match the filter and their
ancestors with isHidden = false, and all the rest with isHidden = true.
You can always traverse the tree and call focus / toggleActivated /
expand / scrollIntoView on whatever node you wish.

On Mon, Sep 12, 2016 at 8:39 PM, carmenbranje notifications@github.com
wrote:

I'd like to filter the nodes, and focus all the nodes that satisfy the
filter. Is that possible to do?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#47, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA2SSqm9k3r4N2rpWu1fWIKhAIXSFrO3ks5qpY46gaJpZM4J61mh
.

@carmenbranje
Copy link
Author

The filtering is removing the unmarked nodes, but not showing the marked nodes. So lets say I have 3 levels to my tree, and the root node is closed. If I do a filter and the search finds a hit on a node at level 3, the tree isn't expanded to show that node. I have to go expand the root node, and then the level 2 node to see the level 3 node that was hit in the search.

@adamkleingit
Copy link
Contributor

OK, I can add a flag that will tell the tree to make sure all nodes are
visible after filtering

On Fri, Sep 16, 2016 at 10:55 PM, carmenbranje notifications@github.com
wrote:

The filtering is removing the unmarked nodes, but not showing the marked
nodes. So lets say I have 3 levels to my tree, and the root node is closed.
If I do a filter and the search finds a hit on a node at level 3, the tree
isn't expanded to show that node. I have to go expand the root node, and
then the level 2 node to see the level 3 node that was hit in the search.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#47 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA2SSkBijfv0YmHZuS_Eol6dLkcjXlpJks5qqvQogaJpZM4J61mh
.

@carmenbranje
Copy link
Author

That would be pretty amazing. Thank you!

@carmenbranje
Copy link
Author

Wondering if this was implemented in the latest versions?

@adamkleingit
Copy link
Contributor

Adding it now....

@adamkleingit
Copy link
Contributor

Fixed in 1.2.2

@abmg84
Copy link

abmg84 commented Jun 2, 2017

Hi,

Please could you explain me how to filter the tree by holding all the nodes visible? I don't know if it's possible, but I need to expand the nodes that correspond with the searching value and mark this with some css styles.

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

3 participants