single-choice-radio
Last updated
Last updated
The single-choice-radio
component allows users to make a single selection from a pre-defined set of options.
bind
label
required
align-content
align-label
disabled
id
label-case
label-color
mode
Optional
Type: row
| column
Default: column
Configure the layout of the list of options. row
lists options horizontally; column
lists options vertically.
on-change
radio-position
Optional
Type: left
| right
Default: left
Specify where the radio button is positioned in the component (relative to the option label).
show-if
and hide-if
scrollIntoView
Programmatically scroll until the single-choice-radio
component is visible in the view.
selectItem
Programmatically select an item by its label.
selectItemByIndex
Programmatically select an item by its index. Note: Indexes begin at 1.
The following component methods are available when an is assigned to the component and component.singleChoiceRadio({id:'my-id'})
is called from JS/TS: