1, "name"=>"Fiction Book Lists", "hasChild"=>true, "expanded"=>true ), array("id"=>2, "pid"=>1, "name"=>"To Kill a Mockingbird" ), array("id"=>3, "pid"=>1, "name"=>"Pride and Prejudice" ), array("id"=>4, "pid"=>1, "name"=>"Harry Potter" ), array("id"=>6, "pid"=>1, "name"=>"The Hobbit" ), array("id"=>7, "name"=>"Mystery Book Lists", "hasChild"=>true, "expanded"=>true ), array("id"=>8, "pid"=>7, "name"=>"And Then There Where None" ), array("id"=>9, "pid"=>7, "name"=>"Angles & Demons" ), array("id"=>10, "pid"=>7, "name"=>"In Cold Blood" ), array("id"=>11, "pid"=>7, "name"=>"The Name of the Rose" ), ); $treeview = new \EJ\TreeView("treeView"); $fields = new EJ\TreeView\Field(); $fields->id("id")->text("name")->parentId("pid")->hasChild("hasChild")->dataSource($localData)->expanded("expanded"); echo $treeview->fields($fields)->render(); ?> horizontal("right")->vertical("center"); $stem->horizontal("left")->vertical("center"); $pos->target($tar)->stem($stem); echo $tooltip->width("230px")->height("65px")->containment(".cols-sample-area")->target(".CanSelect")->position($pos)->beforeOpen("onOpen")->render(); ?>