CheckBoxGroup
CheckBoxGroup
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
Check box groups consist of one or more related check boxes.
Arguments
Name | Required | Description |
---|---|---|
name | String Value for the HTML name attribute. When provided, the check box values will be submitted in to the server in | |
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
check_box(system_arguments: Hash, block: Proc)
Adds a check box to the group.
Parameters
Name | Required | Description |
---|---|---|
system_arguments | Hash The arguments accepted by | |
block | Proc The block accepted by |