On 3/27/2017 4:58 PM, Harry Devine
wrote:
I'm redesigning one of my applications, and I'm adding a dijit/Tree. In
that tree, I want 2 or 3 nodes to be automatically expanded, and the
others collapsed. I can only see how to expand or collapse all nodes at
startup via the autoExpand flag. Does anyone know how I can achieve this?
I looked through the docs, and couldn't make headway either. Given
my recent experiences, what I would do is add an onLoad() handler,
and set a break-point in it. Once the break-point triggers, I'd
start exploring things using the browser's debugger. In particular,
I would look at:
domNode
model
selectedItems
getChildren()
Unfortunately, if you can't find it in the docs, archeology is about
your only option. Once you can get a reference to a node, then you
can start exploring it for event handlers and methods.
Thanks,
Harry
--
Dojo Toolkit:
http://dojotoolkit.org/Tutorials:
http://dojotoolkit.org/documentation/[hidden email]
To unsubscribe, visit:
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest