angular-multi-select icon indicating copy to clipboard operation
angular-multi-select copied to clipboard

Select parent only

Open mirhat opened this issue 7 years ago • 9 comments

Is it possible to select parent only without propagating to children?

mirhat avatar Mar 17 '17 13:03 mirhat

No, this is currently not possible. Nevertheless I might implement it. What is the use case for this?

alexandernst avatar Mar 17 '17 13:03 alexandernst

If You have some kind of hierarchy (like goverment) where parent is independent of children.

mirhat avatar Mar 17 '17 13:03 mirhat

Let me go through some questions.

Let's say that you have a hierarchy such as:

A (0) x
    a x
    b x
    c )0) x
        c1 x
        c2 x
    d x
B x
C x
D (0) x
    a
    b

What would you expect to happen when you click/check A? Should it say A (1) v? Or maybe A (0) v?

alexandernst avatar Mar 17 '17 13:03 alexandernst

When you click on A it would turn to checked but a, b,c would all be unchecked.

mirhat avatar Mar 17 '17 13:03 mirhat

Yes, that I understand, but what would the counter say? Would it say 1 or would it say 0?

alexandernst avatar Mar 17 '17 14:03 alexandernst

In my case counter is not required, but in general I am not sure what it should be

mirhat avatar Mar 17 '17 14:03 mirhat

Solved?

jonasmagas avatar Nov 19 '17 17:11 jonasmagas

not yet, I haven't had time to work on this.

alexandernst avatar Nov 19 '17 17:11 alexandernst

too bad! You did a good job so far

jonasmagas avatar Nov 19 '17 19:11 jonasmagas