Wijmo UI for the Web
add Method
wijmo.tree Namespace > wijtreenode type : add Method
1.markup html.such as "<li><a>node</a></li>" as a node. 2.wijtreenode element. 3.object options according to the options of wijtreenode. 4. node's text.
The position to insert at.
The add method adds a node to the node.
Syntax
var instance = new wijmo.tree.wijtreenode();
var value; // Type: any

// Parameters
var node; // Type:  undefined
var position; // Type:  number

value = instance.add(node, position);
function add( 
   node : undefined,
   position : number
) : any;

Parameters

node
1.markup html.such as "<li><a>node</a></li>" as a node. 2.wijtreenode element. 3.object options according to the options of wijtreenode. 4. node's text.
position
The position to insert at.
Example
$("#treenode1").wijtreenode("add", "node 1", 1);
See Also

Reference

wijtreenode type