var folders = new dhtmlxFolders(parent)
where
<div id='my_folders_here' style="width:500px; height:150px;"></div> <script> //common init code var folders = new dhtmlxFolders("my_folders_here"); </script>
Layout, Window, Accordion, Tabbar can create a folders inside their cells by using
some_component.cells(some_id).attachFolders()
Starting from 2.5 version, folders can be initialized by object notation
var myfolders = new dhtmlxFolders({ some_option1:some_value_1, some_option2:some_value_2, ... some_optionN:some_value_N, })
folders = new dhtmlxFolders({ parent:"a_tree", image_path:"codebase/imgs/", onClick:function(){ alert("I'm clicked"); } });