Skip to content

Commit

Permalink
feat(material): mat-slider thumbLabel support (#2190)
Browse files Browse the repository at this point in the history
  • Loading branch information
skrtheboss authored and aitboudad committed Apr 22, 2020
1 parent 3e3b121 commit 6266881
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/src/app/ui/ui-material/slider/app.component.ts
Expand Up @@ -17,6 +17,7 @@ export class AppComponent {
templateOptions: {
label: 'Slider label',
// placeholder: 'Slider Placeholder',
// thumbLabel: true,
description: 'Slider Description',
required: true,
},
Expand Down
2 changes: 2 additions & 0 deletions src/material/slider/src/slider.type.ts
Expand Up @@ -12,6 +12,7 @@ import { MatSlider } from '@angular/material/slider';
[formlyAttributes]="field"
[tabindex]="to.tabindex || 0"
[color]="to.color"
[thumbLabel]="to.thumbLabel"
[step]="to.step"
[max]="to.max"
[min]="to.min">
Expand All @@ -24,6 +25,7 @@ export class FormlySliderTypeComponent extends FieldType {
templateOptions: {
hideFieldUnderline: true,
floatLabel: 'always',
thumbLabel: false,
},
};

Expand Down

0 comments on commit 6266881

Please sign in to comment.