|
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> |
5 |
| -<mat-button-toggle-group [(ngModel)]="colorModel" aria-label="Slider color options"> |
6 |
| - <mat-button-toggle value="primary">Primary</mat-button-toggle> |
7 |
| - <mat-button-toggle value="accent">Accent</mat-button-toggle> |
8 |
| - <mat-button-toggle value="warn">Warn</mat-button-toggle> |
9 |
| -</mat-button-toggle-group> |
10 |
| -<br> |
11 |
| -<br> |
12 |
| -<br> |
| 1 | +<div class="demo-global-controls-container"> |
| 2 | + <mat-checkbox [color]="colorModel" [(ngModel)]="discrete">Discrete</mat-checkbox> |
| 3 | + <br> |
| 4 | + <mat-checkbox [color]="colorModel" [(ngModel)]="showTickMarks">Show tick marks</mat-checkbox> |
| 5 | + <br> |
| 6 | + <mat-button-toggle-group [(ngModel)]="colorModel" aria-label="Slider color options"> |
| 7 | + <mat-button-toggle value="primary">Primary</mat-button-toggle> |
| 8 | + <mat-button-toggle value="accent">Accent</mat-button-toggle> |
| 9 | + <mat-button-toggle value="warn">Warn</mat-button-toggle> |
| 10 | + </mat-button-toggle-group> |
| 11 | +</div> |
13 | 12 |
|
14 | 13 | <mat-tab-group [color]="colorModel">
|
15 | 14 | <mat-tab label="Reactive form controls">
|
|
38 | 37 | </table>
|
39 | 38 |
|
40 | 39 | <input class="demo-native-slider" type="range" [formControl]="control" #nativeSlider1 />
|
41 |
| - <br> |
42 | 40 | <mat-slider [discrete]="discrete" [showTickMarks]="showTickMarks" [color]="colorModel">
|
43 | 41 | <input matSliderThumb [formControl]="control" #ngThumb1 />
|
44 | 42 | </mat-slider>
|
45 |
| - <br> |
46 | 43 | <mat-slider [discrete]="discrete" [showTickMarks]="showTickMarks" [color]="colorModel">
|
47 | 44 | <input matSliderStartThumb [formControl]="control" #ngStartThumb1 />
|
48 | 45 | <input matSliderEndThumb #ngEndThumb1 />
|
|
95 | 92 | </tr>
|
96 | 93 | </table>
|
97 | 94 |
|
98 |
| - <br> |
99 |
| - |
100 | 95 | <input class="demo-native-slider" type="range" #nativeSlider2 [(ngModel)]="valueModel" [min]="minModel" [max]="maxModel" [step]="stepModel" [disabled]="disabledModel" />
|
101 |
| - <br> |
102 | 96 | <mat-slider [discrete]="discrete" [showTickMarks]="showTickMarks" [color]="colorModel" [min]="minModel" [max]="maxModel" [step]="stepModel" [disabled]="disabledModel">
|
103 | 97 | <input matSliderThumb #ngThumb2 [(ngModel)]="valueModel" />
|
104 | 98 | </mat-slider>
|
105 |
| - <br> |
106 | 99 | <mat-slider [discrete]="discrete" [showTickMarks]="showTickMarks" [color]="colorModel" [min]="minModel" [max]="maxModel" [step]="stepModel" [disabled]="disabledModel">
|
107 | 100 | <input matSliderStartThumb #ngStartThumb2 [(ngModel)]="valueModel" />
|
108 | 101 | <input matSliderEndThumb #ngEndThumb2 />
|
|
156 | 149 | </table>
|
157 | 150 |
|
158 | 151 | <input class="demo-native-slider" type="range" #nativeSlider3 [value]="value" [min]="min" [max]="max" [step]="step" [disabled]="disabled" />
|
159 |
| - <br> |
160 | 152 | <mat-slider [discrete]="discrete" [showTickMarks]="showTickMarks" [color]="colorModel" [min]="min" [max]="max" [step]="step" [disabled]="disabled">
|
161 | 153 | <input matSliderThumb #ngThumb3 [value]="value" />
|
162 | 154 | </mat-slider>
|
163 |
| - <br> |
164 | 155 | <mat-slider [discrete]="discrete" [showTickMarks]="showTickMarks" [color]="colorModel" [min]="min" [max]="max" [step]="step" [disabled]="disabled">
|
165 | 156 | <input matSliderStartThumb #ngStartThumb3 [value]="value" />
|
166 | 157 | <input matSliderEndThumb #ngEndThumb3 />
|
|
186 | 177 | <mat-slider [discrete]="discrete" [showTickMarks]="showTickMarks" [color]="colorModel">
|
187 | 178 | <input matSliderThumb #ngThumb4 [(value)]="twoWayValue" />
|
188 | 179 | </mat-slider>
|
189 |
| - <br> |
190 | 180 | <mat-slider [discrete]="discrete" [showTickMarks]="showTickMarks" [color]="colorModel">
|
191 | 181 | <input matSliderStartThumb #ngStartThumb4 [(value)]="twoWayValue" />
|
192 | 182 | <input matSliderEndThumb #ngEndThumb4 />
|
|
0 commit comments