Mangalaputta / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

descendant-is-selected-indicator in checkboxes of parent nodes in select mode 1 and 2; as is seen in select mode 3 #431

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What new or enhanced feature are you proposing?

A new display mode (in contrast to "select modes") where checkboxes (if 
displayed) of parent nodes indicate if one of their descendants was selected. 
This feature is already shown in select mode 3: There, a green spot inside a 
checkbox indicates that some descendant node is selected.

I have a patch to 1.2.4 (rev 644) attached where mode 3 behaves exactly like 
what I think mode 2 should do when this feature is activated. Here is the 
configuration I use with my patch:

        $(function (){
            $(".dynatree").dynatree({
                checkbox: true, noLink: true, selectMode: 3,classNames: {nodeIcon: "noicon"}
            });
        });

My modification is probably not compatible with other features of dynatree, but 
it works for me.

What goal would this enhancement help you achieve?

A better impression of the tree's checkboxes selected, even if all nodes are 
collapsed.

I do not need the feature; my quick fix with select mode 3 works fine for me. 
But maybe you consider implementing that feature in fancytree.

Original issue reported on code.google.com by christia...@gmail.com on 2 Jun 2013 at 6:01

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, I'll review this for Fancytree...

Original comment by moo...@wwwendt.de on 4 Jun 2013 at 6:03

GoogleCodeExporter commented 8 years ago
As of 2014 Dynatree is feature frozen.
Please have a look at Fancytree (sequel of DynaTree 1.x): chances are good that 
the problem was resolved / the requested featuer is already implemented.
Please open a new issue there otherwise:

https://github.com/mar10/fancytree

Original comment by moo...@wwwendt.de on 1 May 2014 at 4:38