new IWTreeView(parent)
Creates a new treeview under the specified parentNode.
Parameters:
Name | Type | Description |
---|---|---|
parent |
HTMLDivElement | the container under which the treeview appears |
- Since:
-
- 0.70
Methods
-
addNode(node)
-
Adds a new node to the treeview control.
Parameters:
Name Type Description node
IWNodeElement Returns:
- Type
- void
-
addNodes(nodes)
-
Adds an array of nodes to the treeview control.
Parameters:
Name Type Description nodes
Array.<IWNodeElement> an array of nodes Returns:
- Type
- void
-
build()
-
Builds the tree. Call this method after you have registered the event handlers.
Returns:
- Type
- void
-
getContainer()
-
Returns the container of the treeview.
Returns:
the container- Type
- HTMLDivElement
-
getNodes()
-
Returns the array of {IWNodeElement}
Returns:
the nodes- Type
- IWNodeElement
-
getParent()
-
Returns the parent container of the treeview.
Returns:
the parent container- Type
- HTMLElement
-
getTreenodes()
-
Returns the tree nodes.
Returns:
the tree nodes- Type
- Array.<IWTreeNode>
-
removeNode(node)
-
Removes a node from the treeview control.
Parameters:
Name Type Description node
Returns:
- Type
- Boolean