From b781234806a5d2f72e9f4055d01bf12f6d953017 Mon Sep 17 00:00:00 2001 From: tinayuangao Date: Wed, 31 Jan 2018 10:23:39 -0800 Subject: [PATCH] docs(checkbox): Fix checkbox docs, and add example and link about (#9222) dependency injection --- src/lib/checkbox/checkbox.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/lib/checkbox/checkbox.md b/src/lib/checkbox/checkbox.md index 67b8f676ab0..caf7f842fe8 100644 --- a/src/lib/checkbox/checkbox.md +++ b/src/lib/checkbox/checkbox.md @@ -25,8 +25,17 @@ remove the indeterminate state. ### Click action config When user clicks on the `mat-checkbox`, the default behavior is toggle `checked` value and set -`indeterminate` to `false`. Developers now are able to change the behavior by providing a new value -of `MatCheckboxClickAction` to the checkbox. The possible values are: +`indeterminate` to `false`. This behavior can be customized by +[providing a new value](https://angular.io/guide/dependency-injection) +of `MAT_CHECKBOX_CLICK_ACTION` to the checkbox. + +``` +providers: [ + {provide: MAT_CHECKBOX_CLICK_ACTION, useValue: 'check'} +] +``` + +The possible values are: #### `noop` Do not change the `checked` value or `indeterminate` value. Developers have the power to