ludo.form.RadioGroup

ludo.form.


new ludo.form.RadioGroup()

class for a group of radio buttons. Config for the radio buttons should be passed to the
constructor or loaded remotely. Here's an example of format:
[{ value: 1, text : 'my radio', image: 'images/my-radio-image.png' }]

Source:
Fires:
  • ludo.form.RadioGroup#change Fired on change. Arguments: 1) value, 2) ludo.form.event:RadioGroup

Extends

Methods


addOption(value, text)

Add new option element

Parameters:
Name Type Description
value String
text String
Inherited From:
Source:

getCheckedRadio() → {Object}

Return reference to selected radio button component

Source:
Returns:

ludo.form.Radio component

Type
Object

val(value)

The radio button with the chose value will be checked

Parameters:
Name Type Description
value String
Source:
Returns:

void|string