MdSlider custom thumb label text
See original GitHub issueBug, feature request, or proposal:
Feature request
What is the expected behavior?
New Inputs in MdSlider to add a suffix or prefix to the thumb-label-text
What is the current behavior?
Thumb label text simply shows a number
What are the steps to reproduce?
Providing a Plunker (or similar) is the best way to get the team to see your issue. Plunker template: https://goo.gl/DlHd6U
What is the use-case or motivation for changing an existing behavior?
If you want a slider that has a specific unit, like $, or m2 or min.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material 2
Is there anything else we should know?
simply something like this would do:
<span class="mat-slider-thumb-label-text">{{displayPrefix}}{{displayValue}}{{displaySuffix}}</span>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How can I display thumb label all the time for material slider?
If you place the suggested styles in your custom-theme.scss, or in styles.css then it will work. If you use ::ng-deep, then you'll want...
Read more >Slider - KivyMD 1.1.1 documentation
The color in (r, g, b, a) or string format of the thumb when the slider is active. New in version 1.0.0. MDSlider...
Read more >Flutter Slider widgets: A deep dive with examples
Slider is one of the basic Flutter widgets that can be used to select from a range of values by moving the slider...
Read more >Ui_template md-slider help - workable, almost complete
setTimeout(function() { $span_lower.text(msg.payload); $slider_lower.val ... Does anyone know how to move the thumb on a md-slider ?
Read more >How To Display Label Using Slider Of Material Component
... slider is being changed. to <mdslider> which tells it whether to always display the thumb label. Modular and customizable Material Design UI...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Instead of prefix/suffix, what about something similar to autocomplete’s
displayWith
?comp.html
comp.ts
Any work being done on this? I can try and implement @willshowell’s solution and make a pull request. We need this feature to show slider value as audio track time when dragging. This seems very valuable as it’s open to any kind of formatting needed from value to label.