mydoghasworms
mydoghasworms

Reputation: 18591

Dojo: Adding subnodes to a tree programmatically

I am creating a tree in Dojo backed by ItemFileWriteStore. I can add nodes to the root of the tree using newItem(), but I don't know how to add subnodes. How can I get hold of existing nodes and then add subnodes?

Upvotes: 1

Views: 356

Answers (1)

hugomg
hugomg

Reputation: 69934

newItem can receive a second argument that describes what parent you want to create the new item under.

Upvotes: 1

Related Questions