Check documentation for the latest version of dhtmlxSuite addRadioButton DHTMLX Docs

addRadioButton

adds a new radio button, sibling/child mode

void addRadioButton(string mode,string|number nextToId,number pos,string|number itemId,string text,string|number group,boolean state,boolean dis);
modestringsibling/child
nextToIdstring|numberthe item after which the radio button will be added in the "sibling" mode or parent item's id in the "child" mode
posnumberthe item's position in the child mode (null for the sibling one)
itemIdstring|numberid of a new radio button
textstringtext of a new radio button
groupstring|numberradiogroup's id
statebooleanchecked/unchecked
disbooleanenabled/disabled

Example

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

Back to top