Opened 11 years ago

Closed 11 years ago

#5879 closed task (fixed)

Tree: finalize design for specifying root node

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

Description (last modified by bill)

Before beta, need to finalize design for specifying root node of tree.

As per #5812, the current root node specification is polymorphic:

new dijit.Tree({ root: 5, ... });
new dijit.Tree({ root: "continents", ... });

Unfortunately this doesn't fly well with the parser.... root is always treated as a string.

<div dojoType="dijit.Tree" root="5">

... even if it looks like a number

Change History (2)

comment:1 Changed 11 years ago by bill

Description: modified (diff)

comment:2 Changed 11 years ago by bill

Resolution: fixed
Status: newclosed

(In [12481]) Specify root item of tree using query parameter (like in v1.0) rather than "root" parameter. But query returning multiple items (rather than a single item) is deprecated; plan to remove in 2.0. Fixes #5879. !strict

Note: See TracTickets for help on using tickets.