JsTree JavaScript Tree Component

Ken Webb 2011-01-20T02:58:35Z

jsTree is "a javascript based, cross browser tree component. It is packaged as a jQuery plugin".

<script implName="lang:BrowserJS:inline:"><![CDATA[
$(function () {
  $("#divOne").jstree({
    "core" : { "initially_open" : [ "root" ] },
    "html_data" : {
      "data" : "" +
"<div class='' id=''>" +
"<ul>" +
"<li id='2' class='Cat'><a href='#'>&nbsp;cat_2</a>" +
"<ul>" +
"<li id='3' class='MovingCatbehavior'><a href='#'>&nbsp;movingCatbehavior_3</a></li>" +
"<li id='4' class='GrowingCatbehavior'><a href='#'>&nbsp;growingCatbehavior_4</a></li>" +
"<li id='5' class='FreedomOfMovementCatbehavior'><a href='#'>&nbsp;freedomOfMovementCatbehavior_5</a></li>" +
"</ul>" +
"</li>" +
"</ul>" +
"</div>"
    },
    "themes" : { "theme" : "classic" },
    "plugins" : [ "themes", "html_data" ]
  });
});
]]></script>

return to main page