Check documentation for the latest version of dhtmlxSuite addNewChild DHTMLX Docs

addNewChild

adds a new child item

void addNewChild(object parId,number pos,string|number itemId,string text,boolean dis,string imgEn,string imgDis);
parIdobjectthe item which will contain a new item in the sublevel
posnumberthe position of a new item
itemIdstring|numberid of a new item
textstringtext of a new item
disbooleantrue/false, whether the item is disabled or not
imgEnstringimage for the enabled item
imgDisstringimage for the disabled item

Example

myMenu.addNewChild(parentId, pos, itemId, text, dis, imgEn, imgDis);

Back to top