1
- < h1 > Color Picker</ h1 >
1
+ < mat-checkbox [color] ="colorModel " [(ngModel)] ="discrete "> Discrete</ mat-checkbox >
2
+ < br >
3
+ < mat-checkbox [color] ="colorModel " [(ngModel)] ="showTickMarks "> Show tick marks</ mat-checkbox >
4
+ < br >
2
5
< mat-button-toggle-group [(ngModel)] ="colorModel " aria-label ="Slider color options ">
3
6
< mat-button-toggle value ="primary "> Primary</ mat-button-toggle >
4
7
< mat-button-toggle value ="accent "> Accent</ mat-button-toggle >
5
8
< mat-button-toggle value ="warn "> Warn</ mat-button-toggle >
6
9
</ mat-button-toggle-group >
7
10
8
- < br > < br > < br >
9
-
10
- < mat-tab-group color ="{{colorModel}} ">
11
+ < mat-tab-group [color] ="colorModel ">
11
12
< mat-tab label ="Reactive form controls ">
12
13
< table class ="demo-data-table ">
13
14
< tr >
@@ -34,12 +35,10 @@ <h1>Color Picker</h1>
34
35
</ table >
35
36
36
37
< input class ="demo-native-slider " type ="range " [formControl] ="control " #nativeSlider1 />
37
- < br >
38
- < mat-slider discrete showTickMarks color ="{{colorModel}} ">
38
+ < mat-slider [discrete] ="discrete " [showTickMarks] ="showTickMarks " [color] ="colorModel ">
39
39
< input matSliderThumb [formControl] ="control " #ngThumb1 />
40
40
</ mat-slider >
41
- < br >
42
- < mat-slider discrete showTickMarks color ="{{colorModel}} ">
41
+ < mat-slider [discrete] ="discrete " [showTickMarks] ="showTickMarks " [color] ="colorModel ">
43
42
< input matSliderStartThumb [formControl] ="control " #ngStartThumb1 />
44
43
< input matSliderEndThumb #ngEndThumb1 />
45
44
</ mat-slider >
@@ -91,15 +90,11 @@ <h1>Color Picker</h1>
91
90
</ tr >
92
91
</ table >
93
92
94
- < br >
95
-
96
93
< input class ="demo-native-slider " type ="range " #nativeSlider2 [(ngModel)] ="valueModel " [min] ="minModel " [max] ="maxModel " [step] ="stepModel " [disabled] ="disabledModel " />
97
- < br >
98
- < mat-slider discrete showTickMarks color ="{{colorModel}} " [min] ="minModel " [max] ="maxModel " [step] ="stepModel " [disabled] ="disabledModel ">
94
+ < mat-slider [discrete] ="discrete " [showTickMarks] ="showTickMarks " [color] ="colorModel " [min] ="minModel " [max] ="maxModel " [step] ="stepModel " [disabled] ="disabledModel ">
99
95
< input matSliderThumb #ngThumb2 [(ngModel)] ="valueModel " />
100
96
</ mat-slider >
101
- < br >
102
- < mat-slider discrete showTickMarks color ="{{colorModel}} " [min] ="minModel " [max] ="maxModel " [step] ="stepModel " [disabled] ="disabledModel ">
97
+ < mat-slider [discrete] ="discrete " [showTickMarks] ="showTickMarks " [color] ="colorModel " [min] ="minModel " [max] ="maxModel " [step] ="stepModel " [disabled] ="disabledModel ">
103
98
< input matSliderStartThumb #ngStartThumb2 [(ngModel)] ="valueModel " />
104
99
< input matSliderEndThumb #ngEndThumb2 />
105
100
</ mat-slider >
@@ -152,12 +147,10 @@ <h1>Color Picker</h1>
152
147
</ table >
153
148
154
149
< input class ="demo-native-slider " type ="range " #nativeSlider3 [value] ="value " [min] ="min " [max] ="max " [step] ="step " [disabled] ="disabled " />
155
- < br >
156
- < mat-slider discrete showTickMarks color ="{{colorModel}} " [min] ="min " [max] ="max " [step] ="step " [disabled] ="disabled ">
150
+ < mat-slider [discrete] ="discrete " [showTickMarks] ="showTickMarks " [color] ="colorModel " [min] ="min " [max] ="max " [step] ="step " [disabled] ="disabled ">
157
151
< input matSliderThumb #ngThumb3 [value] ="value " />
158
152
</ mat-slider >
159
- < br >
160
- < mat-slider discrete showTickMarks color ="{{colorModel}} " [min] ="min " [max] ="max " [step] ="step " [disabled] ="disabled ">
153
+ < mat-slider [discrete] ="discrete " [showTickMarks] ="showTickMarks " [color] ="colorModel " [min] ="min " [max] ="max " [step] ="step " [disabled] ="disabled ">
161
154
< input matSliderStartThumb #ngStartThumb3 [value] ="value " />
162
155
< input matSliderEndThumb #ngEndThumb3 />
163
156
</ mat-slider >
@@ -179,11 +172,10 @@ <h1>Color Picker</h1>
179
172
</ tr >
180
173
</ table >
181
174
182
- < mat-slider discrete showTickMarks color =" {{ colorModel}} ">
175
+ < mat-slider [ discrete] =" discrete " [ showTickMarks] =" showTickMarks " [ color] =" colorModel ">
183
176
< input matSliderThumb #ngThumb4 [(value)] ="twoWayValue " />
184
177
</ mat-slider >
185
- < br >
186
- < mat-slider discrete showTickMarks color ="{{colorModel}} ">
178
+ < mat-slider [discrete] ="discrete " [showTickMarks] ="showTickMarks " [color] ="colorModel ">
187
179
< input matSliderStartThumb #ngStartThumb4 [(value)] ="twoWayValue " />
188
180
< input matSliderEndThumb #ngEndThumb4 />
189
181
</ mat-slider >
0 commit comments