adds a new sibling item
nextToId | string|number | id of the element after which a new one will be inserted |
itemId | string|number | id of a new item |
text | string | text of a new item |
dis | boolean | true|false, whether the item is disabled or not |
imgEn | string | image for the enabled item |
imgDis | string | image for the disabled item |
menu.addNewSibling(nextToId, itemId, text, dis, imgEn, imgDis);
Back to top