Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,22 @@

.example-section {
display: flex;
flex-wrap: wrap;
align-content: center;
align-items: center;
height: 60px;
}

.example-margin {
margin: 8px;
}
.example-width {
max-width: 180px;
width: 100%;
}

.mat-slider-horizontal {
width: 300px;
max-width: 300px;
width: 100%;
}

.mat-slider-vertical {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<h2 class="example-h2">Slider configuration</h2>

<section class="example-section">
<mat-form-field class="example-margin" appearance="fill">
<mat-form-field class="example-margin example-width" appearance="fill">
<mat-label>Value</mat-label>
<input matInput type="number" [(ngModel)]="value">
</mat-form-field>
<mat-form-field class="example-margin" appearance="fill">
<mat-form-field class="example-margin example-width" appearance="fill">
<mat-label>Min value</mat-label>
<input matInput type="number" [(ngModel)]="min">
</mat-form-field>
<mat-form-field class="example-margin" appearance="fill">
<mat-form-field class="example-margin example-width" appearance="fill">
<mat-label>Max value</mat-label>
<input matInput type="number" [(ngModel)]="max">
</mat-form-field>
<mat-form-field class="example-margin" appearance="fill">
<mat-form-field class="example-margin example-width" appearance="fill">
<mat-label>Step size</mat-label>
<input matInput type="number" [(ngModel)]="step">
</mat-form-field>
Expand All @@ -26,7 +26,7 @@ <h2 class="example-h2">Slider configuration</h2>
<mat-checkbox class="example-margin" [(ngModel)]="autoTicks" *ngIf="showTicks">
Auto ticks
</mat-checkbox>
<mat-form-field class="example-margin" appearance="fill" *ngIf="showTicks && !autoTicks">
<mat-form-field class="example-margin example-width" appearance="fill" *ngIf="showTicks && !autoTicks">
<mat-label>Tick interval</mat-label>
<input matInput type="number" [(ngModel)]="tickInterval">
</mat-form-field>
Expand Down