attachTreeView
adds a treeview object to the popup
dhtmlXTreeViewObject attachTreeView(number width,number height,object conf);
width | number | accordion width |
height | number | accordion height |
conf | object | optional, treeview config for object-api init |
dhtmlXTreeViewObject | dhtmlXTreeViewObject 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