attachTreeView

adds a treeview object to the popup

dhtmlXTreeViewObject attachTreeView(number width,number height,object conf);

Parameters

widthnumberaccordion width
heightnumberaccordion height
confobjectoptional, treeview config for object-api init

Returns

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