Components: feat(mat-slider): disabled slider to show thumbLabel/color

Created on 18 Jan 2018  路  5Comments  路  Source: angular/components

Bug, feature request, or proposal:

Enabling disabled mat-slider to show value and color.

What is the expected behavior?

Cannot show previously selected value in mat-slider. And cannot set color to disabled slider.
Something like this

<mat-slider 
              showThumbLabelAlways ="true"
              thumbLabel="true"
              color="warn"
              showColorOnDisabled="true"
              disabled="true"
              value="immutableValue"></mat-slider>

What is the current behavior?

mat-slider has no preference to show thumbLabel on un-focused state and show default color in disabled state.

What is the use-case or motivation for changing an existing behavior?

To show detailed data in slider.

P4 materiaslider feature

Most helpful comment

So basically a readonly mode, where the thumb label always shows?

image

Example implementation of the [readonly] attribute.

All 5 comments

So basically a readonly mode, where the thumb label always shows?

image

Example implementation of the [readonly] attribute.

Yes, it would be nice.

Will be cool

Any solution for this?

Yes please implement this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MurhafSousli picture MurhafSousli  路  3Comments

crutchcorn picture crutchcorn  路  3Comments

savaryt picture savaryt  路  3Comments

vanor89 picture vanor89  路  3Comments

Miiekeee picture Miiekeee  路  3Comments