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 | Default | Description |
|---|---|---|
name | StringValue for the HTML name attribute. When provided, the check box values will be submitted in to the server in | |
label | StringLabel text displayed above the input. | |
hidden | BooleanWhen set to | |
caption | StringA string describing the field and what sorts of input it expects. Displayed below the group. | |
invalid | BooleanIf set to | |
validation_message | StringA 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 | HashAttributes that will be passed to Rails' |
Methods
check_box(system_arguments: Hash, block: Proc)
Adds a check box to the group.
Parameters
| Name | Default | Description |
|---|---|---|
system_arguments | HashThe arguments accepted by | |
block | ProcThe block accepted by |