Changes between Initial Version and Version 1 of Ticket #16448, comment 1


Ignore:
Timestamp:
Dec 8, 2012, 12:25:29 PM (7 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16448, comment 1

    initial v1  
    1 Well, you could modify the model go getChildren() returns a zero length array in that case.
     1Well, you could modify the model so getChildren() returns a zero length array in that case.
    22
    3 Or probably better, you could override Tree._onClick(), or _onExpandoClick(),  to ignore the click event.
     3Or probably better, you could override Tree._onClick(), or Tree._onExpandoClick(),  to ignore the click event.
    44
    55So, lots of ways to customize tree to do that.   I don't see a need to add a specific feature to Tree for it.
     6
     7PS: for bonus points, update _updateItemClasses() so that the cursor reflects the fact that the node can't be expanded.