Merge branch '2.x' into dev
This commit is contained in:
+24
-1
@@ -273,7 +273,30 @@ Use [ref](https://v3.vuejs.org/guide/component-template-refs.html) to get Checkb
|
||||
|
||||
| Name | Description | Attribute | Return value |
|
||||
| --- | --- | --- | --- |
|
||||
| toggleAll | Toggle check status of all checkboxes | _checked?: boolean_ | - |
|
||||
| toggleAll | Toggle check status of all checkboxes | _options?: boolean \| object_ | - |
|
||||
|
||||
### toggleAll Usage
|
||||
|
||||
```js
|
||||
const { checkboxGroup } = this.$refs;
|
||||
|
||||
// Toggle all
|
||||
checkboxGroup.toggleAll();
|
||||
// Select all
|
||||
checkboxGroup.toggleAll(true);
|
||||
// Unselect all
|
||||
checkboxGroup.toggleAll(false);
|
||||
|
||||
// Toggle all, skip disabled
|
||||
checkboxGroup.toggleAll({
|
||||
skipDisabled: true,
|
||||
});
|
||||
// Select all, skip disabled
|
||||
checkboxGroup.toggleAll({
|
||||
checked: true,
|
||||
skipDisabled: true,
|
||||
});
|
||||
```
|
||||
|
||||
### Checkbox Methods
|
||||
|
||||
|
||||
Reference in New Issue
Block a user