File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,17 @@ remove the indeterminate state.
25
25
26
26
### Click action config
27
27
When user clicks on the ` mat-checkbox ` , the default behavior is toggle ` checked ` value and set
28
- ` indeterminate ` to ` false ` . Developers now are able to change the behavior by providing a new value
29
- of ` MatCheckboxClickAction ` to the checkbox. The possible values are:
28
+ ` indeterminate ` to ` false ` . This behavior can be customized by
29
+ [ providing a new value] ( https://angular.io/guide/dependency-injection )
30
+ of ` MAT_CHECKBOX_CLICK_ACTION ` to the checkbox.
31
+
32
+ ```
33
+ providers: [
34
+ {provide: MAT_CHECKBOX_CLICK_ACTION, useValue: 'check'}
35
+ ]
36
+ ```
37
+
38
+ The possible values are:
30
39
31
40
#### ` noop `
32
41
Do not change the ` checked ` value or ` indeterminate ` value. Developers have the power to
You can’t perform that action at this time.
0 commit comments