DHTMLX Docs & Samples Explorer

Index
dhtmlxmenu
API Methods

### addRadioButton(mode, nextToId, pos, itemId, itemText, group, state, disabled)

Required library edition:
Required library file: dhtmlxmenu_ext.js

adds a new radio button, sibling|child mode

- mode - (string) sibling|child
- nextToId - the item after which the radio button will be added in the “sibling” mode or parent item's id in the “child” mode
- pos - the item's position in the child mode (null for sibling)
- itemId - id of a new radio button
- itemText - text of a new radio button
- group - radiogroup's id
- state - checked|unchecked
- disabled - enabled|disabled

        menu.addRadioButton(mode, nextToId, pos, itemId, itemText, group, state, disabled);