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

Feature Request: Filter Extension with hierarchical checkboxes - only select unfiltered nodes #84

Closed
kehh opened this issue Nov 4, 2013 · 1 comment
Milestone

Comments

@kehh
Copy link

kehh commented Nov 4, 2013

Hi,
Thanks for a great tool. I am trying to filter a tree using your filter demo. Using select mode 3 nodes that are filtered (hidden / greyed out) are still implicitly checked when selecting the parent.
so what happens is:

[x] Parent
    [x] Hidden filtered child
    [x] Unfiltered child

but what I would like to happen is:

[x] Parent
    [ ] Hidden filtered child does not get checked
    [x] Unfiltered child

Is there an option for filtering with this behavior? If not then this is a feature request (and can probably be added to #15).

@mar10
Copy link
Owner

mar10 commented Nov 6, 2013

Selectmode 3 is pretty involved already (see https://github.com/mar10/fancytree/wiki/SpecSelect).
I think combining this with the filter extension would add another dimension of complexity - and any solution probably would be perfect for other users 'except for one little difference'... ;-)

For example, if you have hidden children and click the checkbox, the box would still only be partly selected, probably not what a user would expect (?)

Anyway, you could try to implement it using select mode 2 and some custom event handling, I guess.
Or you could even try to create a copy of the filter extensions that handles this.

@mar10 mar10 closed this as completed Nov 6, 2013
@mar10 mar10 added this to the 2.0.0beta milestone May 11, 2014
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

2 participants