Code Monkey home page Code Monkey logo

Comments (8)

adamkleingit avatar adamkleingit commented on May 16, 2024

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 [email protected]
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
.

from angular-tree-component.

carmenbranje avatar carmenbranje commented on May 16, 2024

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.

from angular-tree-component.

adamkleingit avatar adamkleingit commented on May 16, 2024

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 [email protected]
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
.

from angular-tree-component.

carmenbranje avatar carmenbranje commented on May 16, 2024

That would be pretty amazing. Thank you!

from angular-tree-component.

carmenbranje avatar carmenbranje commented on May 16, 2024

Wondering if this was implemented in the latest versions?

from angular-tree-component.

adamkleingit avatar adamkleingit commented on May 16, 2024

Adding it now....

from angular-tree-component.

adamkleingit avatar adamkleingit commented on May 16, 2024

Fixed in 1.2.2

from angular-tree-component.

abmg84 avatar abmg84 commented on May 16, 2024

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.

from angular-tree-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.