Wijmo UI for the Web
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
Javascript (Usage) 
var instance = new wijmo.tree.wijtreenode();
var value; // Type: any

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

value = instance.add(node, position);
Javascript (Specification) 
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);
Browser Compatibility
7
5
5

See Also

Reference

wijtreenode type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.