@@ -32,6 +32,17 @@ can easily be used as a prefix or suffix on the material input:
3232</mat-form-field >
3333```
3434
35+ If you want to customize the icon that is rendered inside the ` mat-datepicker-toggle ` , you can do so
36+ by using the ` matDatepickerToggleIcon ` directive:
37+
38+ ``` html
39+ <input [matDatepicker] =" myDatepicker" >
40+ <mat-datepicker-toggle [for] =" myDatepicker" >
41+ <img matDatepickerToggleIcon src =" my-custom-icon.png" >
42+ </mat-datepicker-toggle >
43+ <mat-datepicker #myDatepicker ></mat-datepicker >
44+ ```
45+
3546### Setting the calendar starting view
3647
3748The ` startView ` property of ` <mat-datepicker> ` can be used to set the view that will show up when
@@ -99,7 +110,7 @@ Each validation property has a different error that can be checked:
99110 * A value that violates the ` min ` property will have a ` matDatepickerMin ` error.
100111 * A value that violates the ` max ` property will have a ` matDatepickerMax ` error.
101112 * A value that violates the ` matDatepickerFilter ` property will have a ` matDatepickerFilter ` error.
102-
113+
103114### Input and change events
104115
105116The input's native ` (input) ` and ` (change) ` events will only trigger due to user interaction with
@@ -171,7 +182,7 @@ It's also possible to set the locale at runtime using the `setLocale` method of
171182The datepicker was built to be date implementation agnostic. This means that it can be made to work
172183with a variety of different date implementations. However it also means that developers need to make
173184sure to provide the appropriate pieces for the datepicker to work with their chosen implementation.
174- The easiest way to ensure this is just to import one of the pre-made modules:
185+ The easiest way to ensure this is just to import one of the pre-made modules:
175186
176187| Module | Date type| Supported locales | Dependencies | Import from |
177188| ---------------------| ---------| -----------------------------------------------------------------------| ----------------------------------| ----------------------------------|
@@ -338,7 +349,7 @@ In multi-year view:
338349
339350This error is thrown if you have not provided all of the injectables the datepicker needs to work.
340351The easiest way to resolve this is to import the ` MatNativeDateModule ` or ` MatMomentDateModule ` in
341- your application's root module. See
352+ your application's root module. See
342353[ _ Choosing a date implementation_ ] ( #choosing-a-date-implementation-and-date-format-settings ) ) for
343354more information.
344355
0 commit comments