Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#16448 closed feature (wontfix)

disable expanding tree onClick of plus sign

Reported by: skyrbe Owned by:
Priority: undecided Milestone: tbd
Component: Dijit Version: 1.7.0
Keywords: Cc:
Blocked By: Blocking:



Is it possible to make a sub directory not expand when I click on the + sign. The sub directory has children but I don't want it to be shown when I click the + sign.

Change History (2)

comment:1 Changed 9 years ago by bill

Component: GeneralDijit
Resolution: wontfix
Status: newclosed

Well, you could modify the model so getChildren() returns a zero length array in that case.

Or probably better, you could override Tree._onClick(), or Tree._onExpandoClick(), to ignore the click event.

So, lots of ways to customize tree to do that. I don't see a need to add a specific feature to Tree for it.

PS: for bonus points, update _updateItemClasses() so that the cursor reflects the fact that the node can't be expanded.

Last edited 9 years ago by bill (previous) (diff)

comment:2 Changed 9 years ago by skyrbe

Thanks Bill!

Note: See TracTickets for help on using tickets.