# Module `RadioGroup`

Radio group module

## Functions

init(self, nodes, callback[, click_nodes=node]) | Component init function
set_state(self, index, is_instant) | Set radio group state
get_state(self) | Return radio group state

## Fields

on_radio_click | On any checkbox click
checkboxes | Array of checkbox components

## Functions

init(self, nodes, callback[, click_nodes=node])
  Component init function

  ### Parameters:

  - self RadioGroup
  - nodes node[] Array of gui node
  - callback function Radio callback
  - click_nodes node[] Array of trigger nodes, by default equals to nodes (default node)
set_state(self, index, is_instant)
  Set radio group state

  ### Parameters:

  - self RadioGroup
  - index number Index in radio group
  - is_instant boolean If is instant state change
get_state(self)
  Return radio group state

  ### Parameters:

  - self RadioGroup

  ### Returns:

  number Index in radio group

## Fields

on_radio_click
  On any checkbox click
  - on_radio_click druid_event
checkboxes
  Array of checkbox components
  - checkboxes Checkbox[]

generated by LDoc 1.4.6 Last updated 2022-02-12 17:16:44