Check documentation for the latest version of dhtmlxSuite attachTreeView DHTMLX Docs

attachTreeView

adds a treeview object to the popup

dhtmlXTreeViewObject attachTreeView(number width,number height,object conf);
widthnumberaccordion width
heightnumberaccordion height
confobjectoptional, treeview config for object-api init
dhtmlXTreeViewObjectdhtmlXTreeViewObject instance

Example

var myPop = new dhtmlXPopup(...);
myTreeView = myPop.attachTreeView(210, 95, {
    items: [
        {id: 1, text: "Documents", open: 1, items: [
            {id: 2, text: "Privacy and Terms.pdf"},
            {id: 3, text: "Licence Agreement.pdf"}
        ]}
    ]
});

Back to top