Check documentation for the latest version 6.0 of dhtmlxSuite addCheckbox DHTMLX Docs

addCheckbox

adds a new checkbox, sibling/child mode

void addCheckbox(string mode,object nextToId,number pos,string|number itemId,string text,boolean state,boolean dis);

Parameters

modestringsibling/child
nextToIdobjectthe item after which a checkbox will be added in the "sibling" mode or parent item's id in the "child" mode
posnumberitem's position in the child mode (null for the sibling one)
itemIdstring|numberid of a new checkbox
textstringtext of a new checkbox
statebooleanchecked/unchecked
disbooleanenabled/disabled

Example

myMenu.addCheckbox(mode, nextToId, pos, itemId, text, state, dis);

Back to top