DojoTree

The DojoTree widget works with an array of DojoTreeNode records to create trees.

Properties

children
Identifies the nodes that compose a tree. Points to an array of DojoTreeNode records that define the tree nodes.
showRoot
Specifies whether to display the root node:
  • Here, the showRoot property is set to true:
    Tree with root
  • Here, the property is set to false:
    Tree without root
text
The name of a top-level root node

Events

onClick
Specifies an event that occurs when the tree node is clicked

Functions

addTreeNode
Adds a tree node to the tree
removeTreeNode
Removes a tree node from the tree
updateTreeNode
Changes a tree node in the tree

Feedback