Skip to content

Commit b781234

Browse files
authored
docs(checkbox): Fix checkbox docs, and add example and link about (#9222)
dependency injection
1 parent e7b697a commit b781234

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/lib/checkbox/checkbox.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,17 @@ remove the indeterminate state.
2525

2626
### Click action config
2727
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:
3039

3140
#### `noop`
3241
Do not change the `checked` value or `indeterminate` value. Developers have the power to

0 commit comments

Comments
 (0)