Opened 15 years ago

Closed 15 years ago

#3345 closed defect (fixed)

Tree: should call getLabel()

Reported by: bill Owned by: bill
Priority: high Milestone: 0.9beta
Component: Dijit Version: 0.9
Keywords: Cc:
Blocked By: Blocking:


Tree should call getLabel() by default, to get the default text for each TreeNode?. Should be able to override the function that generates the DOM for each tree, but the default should be to just use the result returned by getLabel(). Shouldn't need labelAttr parameter to widget.

Jared has already implemented getLabel() in JsonItemStore?, so JsonItemStore? should have everything you need. In the unit tests there's a data file that serves as an example of how to specify item labels and item identifiers:

Change History (1)

comment:1 Changed 15 years ago by bill

Resolution: fixed
Status: newclosed

(In [9273]) Use store.getLabel() to get label of each node. Remove "typeAttr" too, until I implement icons for tree nodes (I'll make a method called getCssClassName(store, item) rather than a simple attribute called typeAttr.)

Fixes #3345

Note: See TracTickets for help on using tickets.