DHTMLX Docs & Samples Explorer

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

Required library edition: This method works with any edition of DHTMLX library
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);