File tree 2 files changed +8
-3
lines changed
coreui-vue/src/components/form
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ const CFormCheck = defineComponent({
57
57
default : undefined ,
58
58
required : false ,
59
59
} ,
60
+ /**
61
+ * Input Checkbox indeterminate Property
62
+ */
63
+ indeterminate : Boolean ,
60
64
/**
61
65
* Group checkboxes or radios on the same horizontal row by adding.
62
66
*/
@@ -149,6 +153,7 @@ const CFormCheck = defineComponent({
149
153
} ,
150
154
] ,
151
155
id : props . id ,
156
+ indeterminate : props . indeterminate ,
152
157
onChange : ( event : InputEvent ) => handleChange ( event ) ,
153
158
type : props . type ,
154
159
} )
Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ Browser default checkboxes and radios are replaced with the help of `<CFormCheck
22
22
23
23
## Indeterminate
24
24
25
- Checkboxes can utilize the ` :indeterminate ` pseudo class when manually set via JavaScript (there is no available HTML attribute for specifying it) .
25
+ Checkboxes can utilize the ` :indeterminate ` pseudo- class when manually set via ` indeterminate ` property .
26
26
27
27
::: demo
28
- <CFormCheck id =" flexCheckIndeterminate " label =" Indeterminate checkbox " ref = {checkboxRef} />
28
+ <CFormCheck id =" flexCheckIndeterminate " label =" Indeterminate checkbox " indeterminate />
29
29
30
30
:::
31
31
``` vue
32
- <CFormCheck id="flexCheckIndeterminate" label="Indeterminate checkbox" ref={checkboxRef} />
32
+ <CFormCheck id="flexCheckIndeterminate" label="Indeterminate checkbox" indeterminate />
33
33
```
34
34
35
35
### Disabled
You can’t perform that action at this time.
0 commit comments