attachTreeView

attaches dhtmlxTreeView to a cell

object attachTreeView( [object conf] );

Parameters

confobjectoptional, treeview config

Returns

objectdhtmlXTreeViewObject instance

Example

var myTreeView = dhxComponent.cells(id).attachTreeView({
    items: [
        {id: 1, text: "Books", open: 1, items: [
            {id: 2, text: "Turned at Dark / C. C. Hunter"},
            {id: 3, text: "Daire Meets Ever / Alyson Noël"}
        ]}
    ]
});

Back to top