Wijmo UI for the Web
add Method
1.markup html.such as "<li><a>node</a></li>" as a node. 2.wijtreenode widget. 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 tree widget.
Syntax
Javascript (Usage) 
$(function () {
    var returnsValue; // Type:  any
    // Parameters
    var node; // Type:  undefined
    var position; // Type:  number
    
    returnsValue = $(".selector").wijtree("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 widget. 3.object options according to the options of wijtreenode. 4.node's text.
position
The position to insert at.
Example
$("#tree").wijtree("add", "node 1", 1);
Browser Compatibility
7
5
5

See Also

Reference

wijtree type
wijtree jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.