# LCheckboxGroup
# Props
# validations
- Type:
Array<(value: Array<boolean>) => true | string>
- Default:
[]
An array of validation methods for the contents of the LCheckboxGroup
component. Each validation should return true
if the contents of the LCheckboxGroup
component are valid and an error string if the contents are invalid. Each boolean of the value
array corresponds to the value of one of the LCheckbox
components inside of the LCheckboxGroup
.
# hide-errors
- Type:
boolean
- Default:
false
Indicates whether or not to hide the errors of the LCheckboxGroup
component. If true
, no error will be rendered in the HTML.
# Exposed Attributes
# valid
- Type:
boolean
Indicates whether or not the LCheckboxGroup
component's contents are valid. When this attribute gets called, the lazy validations will start to be executed (if they weren't being executed before). Please note that this attribute's value gets assigned by watching the field's content, so calling it multiple times won't run the validations multiple times.
# error
- Type:
string
Indicates the first failed validation's error string.