adds a new checkbox, sibling/child mode
mode | string | sibling/child |
nextToId | object | the item after which a checkbox will be added in the "sibling" mode or parent item's id in the "child" mode |
pos | number | item's position in the child mode (null for the sibling one) |
itemId | string|number | id of a new checkbox |
text | string | text of a new checkbox |
state | boolean | checked/unchecked |
dis | boolean | enabled/disabled |
myMenu.addCheckbox(mode, nextToId, pos, itemId, text, state, dis);
Back to top