attachTree

adds a tree object to the popup

dhtmlXTreeObject attachTree(number width,number height,string|number rootId);

Parameters

widthnumbertree width
heightnumbertree height
rootIdstring|numberthe id of the parent root (see dhtmlXTree docs, 0 by default)

Returns

dhtmlXTreeObjectdhtmlXTree instance

Example

var myPop = new dhtmlXPopup(...);
var myTree = myPop.attachTree(350, 300);

Back to top