Check documentation for the latest version of dhtmlxSuite addNewSibling DHTMLX Docs

addNewSibling

adds a new sibling item

void addNewSibling(string|number nextToId,string|number itemId,string text,boolean dis,string imgEn,string imgDis);
nextToIdstring|numberid of the element after which a new one will be inserted
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

menu.addNewSibling(nextToId, itemId, text, dis, imgEn, imgDis);

Back to top