Category Archives: jsTree

[jsTree] Populating the tree using JSON

Using Json $(‘#using_json’).jstree({ ‘core’ : { ‘data’ : [ ‘Simple root node’, { ‘text’ : ‘Root node 2’, ‘state’ : { ‘opened’ : true, ‘selected’ : true }, ‘children’ : [ { ‘text’ : ‘Child 1’ }, ‘Child 2’ ] … Continue reading

Posted in jsTree | Leave a comment

[jsTree] Expand and collapse buttons.

<input type=”button” value=”Expand All” onclick=”$(‘#jsTreeID’).jstree(‘open_all’);”> <input type=”button” value=”Collapse All” onclick=”$(‘#jsTreeID’).jstree(‘close_all’);”> Ref: jsTree: adding Expand All and Collapse All buttons

Posted in jsTree | Leave a comment