Opened 11 years ago

Closed 7 years ago

#7513 closed enhancement (fixed)

Tree: support indirect selection (aka checkbox tree)

Reported by: David Schwartz Owned by: bill
Priority: high Milestone: 1.8
Component: Dijit Version: 1.1.1
Keywords: ibm tree indirect selection Cc: Adam Peller
Blocked By: Blocking:

Description

Ticket #7485 describes the notion of indirect selection. The tree widget should also support indirect selection. See the image below for an example of indirect selection within a hierarchical widget.

Attachments (2)

hiernav02.jpg (58.8 KB) - added by David Schwartz 11 years ago.
tree-toggle.patch (10.7 KB) - added by Adam Peller 10 years ago.
My quick experiment to implement this feature in a subclass. Needs more work, particularly in initializing, storing, and accessing the states. Note that the toggle boxes here are vertically aligned on the far left and would likely be implemented as image hide/show via css, but could also be a standard checkbox

Download all attachments as: .zip

Change History (11)

Changed 11 years ago by David Schwartz

Attachment: hiernav02.jpg added

comment:1 Changed 11 years ago by bill

Component: Dijit - LnFDijit
Milestone: tbd1.4
Owner: set to bill
Summary: Tree widget should support indirect selectionTree: support indirect selection

comment:2 Changed 11 years ago by bill

Type: defectenhancement

comment:3 Changed 11 years ago by bill

Milestone: 1.41.5

bumping 1.4 tickets to 1.5, and most 1.3 tickets to 1.4

comment:4 Changed 10 years ago by Adam Peller

Cc: Adam Peller added

Changed 10 years ago by Adam Peller

Attachment: tree-toggle.patch added

My quick experiment to implement this feature in a subclass. Needs more work, particularly in initializing, storing, and accessing the states. Note that the toggle boxes here are vertically aligned on the far left and would likely be implemented as image hide/show via css, but could also be a standard checkbox

comment:5 Changed 9 years ago by bill

Milestone: 1.5future

comment:6 Changed 8 years ago by bill

Note that the checkboxes need to be tri-state, to indicate when some (but not all) of a parent's children are selected, see #12468.

comment:7 Changed 8 years ago by bill

Also see http://www.thejekels.com/blog/dojo/dijit-tree-with-multi-state-checkboxes/, although need to find out if that person has a CLA (it's not even obvious whose blog that is).

comment:8 Changed 8 years ago by vvoovv

There is also an implementation from Google: http://earth-api-samples.googlecode.com/svn/trunk/demos/dom-tree/index.html. Press "Load KML or KMZ" button to see the tree.

Though checkboxes there have only 2 states.

comment:9 Changed 7 years ago by bill

Milestone: future1.8
Resolution: fixed
Status: newclosed
Summary: Tree: support indirect selectionTree: support indirect selection (aka checkbox tree)

Peter Jekel has checked in such a Tree as a separate project, at https://github.com/pjekel/cbtree. So closing this ticket.

See also his demo at http://www.thejekels.com/cbtree/demos/ and his blog post http://www.thejekels.com/blog/featured/the-new-dijit-checkbox-tree/. Report issues at https://github.com/pjekel/cbtree/issues.

Note: See TracTickets for help on using tickets.