RadioButtonGroup
RadioButtonGroup
component is part of the Primer ViewComponents forms framework. If you are building a form, please consider using the framework instead of this standalone component.Description
A group of mutually exclusive radio buttons.
Arguments
Name | Required | Description |
---|---|---|
name | String Value for the HTML name attribute. | |
label | String Label text displayed above the input. | |
hidden | Boolean When set to | |
caption | String A string describing the field and what sorts of input it expects. Displayed below the group. | |
invalid | Boolean If set to | |
validation_message | String A string displayed between the caption and the input indicating the input's contents are invalid. This option is, by default, set to the first Rails validation message for the input (assuming the form is associated with a model object). Use | |
label_arguments | Hash Attributes that will be passed to Rails' |
Methods
radio_button(system_arguments: Hash, block: Proc)
Adds a radio button to the group.
Parameters
Name | Required | Description |
---|---|---|
system_arguments | Hash The arguments accepted by | |
block | Proc The block accepted by |