radios
This is simple list of radio buttons to select
Special properties of field
Property | Default | Accepted values | Description |
| none |
| List of items. See details below. |
| {} |
| Settings to radios component. See details below. |
values
values
It can be an array with items, or a Function
then returns an array of items. The items can be a String
, Boolean
, Number
or an Object
(see below). |
Item Object
Object
Property | Default | Accepted Values | Description |
| none |
| The text displayed beside the radio button (ie; Label) |
| none |
| The value of the radio option stored in the model |
| none |
| Used to disable this radio option |
You can change value
and name
(under radiosOptions
) to select any properties of that object as the value or name.
If disabled
is set to a function, it will be passed a reference to the model
radiosOptions
radiosOptions
Property | Default | Accepted values | Description |
| none |
| Used to select any properties from object in |
| none |
| Used to select any properties from object in |
Usage
Radios field with array of strings:
Radios field with object values:
Radios field with custom object values:
Styling
The is-checked
and is-disabled
CSS classes are attached to the radio options <label />
element when applicable.
Last updated