Checkbox
A group of options for multiple choices.
Basic Usage
Define v-model
(bind variable) in el-checkbox
. The default value is a Boolean
for single checkbox.
Indeterminate
The indeterminate
property can help you to achieve a 'check all' effect.
Checkbox API
Checkbox Attributes
Name | Description | Type | Default |
---|---|---|---|
model-value / v-model | binding value | boolean | false |
indeterminate | Set indeterminate state, only responsible for style control | boolean | false |
Checkbox Slots
Name | Description | Subtags |
---|---|---|
default | customize default content | - |
Checkbox Events
Name | Description | Parameters |
---|---|---|
change | triggers when the binding value changes | checked: boolean |