Example
new RadioGroup({
items: [
new CheckBox({
style: {
unchecked: `switch_off.png`,
checked: `switch_on.png`,
}
}),
new CheckBox({
style: {
unchecked: `switch_off.png`,
checked: `switch_on.png`,
}
}),
new CheckBox({
style: {
unchecked: `switch_off.png`,
checked: `switch_on.png`,
}
}),
],
type: 'vertical'
});
Extends
- Container
Members
innerView List
List, that holds and control all inned checkboxes.
Fires, when new item is selected.
ID of the selected item.
Text value of the selected item.
Methods
Add items to a group.
Name | Type | Description |
---|---|---|
items |
Array<CheckBox> |
array of CheckBox instances. |
Initiates a group.
Name | Type | Description |
---|---|---|
options |
RadioBoxOptions |
Remove items from a group.
Name | Type | Description |
---|---|---|
ids |
number[] |
Select item by ID.
Name | Type | Description |
---|---|---|
id |
number |