Components: Range Slider

Created on 26 Sep 2016  路  59Comments  路  Source: angular/components

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

Range Slider

What is the current behavior?

We manipulate a single value.

What are the steps to reproduce?

Not applicable

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

For input a range (start and end) besides just one value. Currency, date, time... several motivations.

Which versions of Angular, Material, OS, browsers are affected?

Latest

Is there anything else we should know?

I think JQuery UI also could be a good source of new UI features for material2.

P3 materiaslider feature

Most helpful comment

+1 this is really important for a lot of applications

All 59 comments

any news on this?

I don't think this is a priority for us since its not part of the material spec

I understand. It would be considered a future enhancement. I see Ionic Range could be a good inspiration (there is an example - see _structure_ field). And it's on top of Angular 2.

i really really hope, that they implement it... I know people who use ionic, only because in material is no range slider...

Any news? Really nice to have.

+1 this is really important for a lot of applications

Any news?

News about?

+1

+1

  • 1

+1

+1

+1

Good inspiration:


<!-- auto range slider -->
<mat-slider values="[10, 22, ...]"></mat-slider>

<!-- explicit range slider -->
<mat-slider range values="[10, 22, ...]"></mat-slider>

@troelssiggaard @ghal @alexlevy0 @KKHAN1991 @hatem20 @dniadzelka @franckie20 Please don't spam others who have watched this repository with +1s. Just click on the thumbs up emoji on the top post.

Hi and sorry for the flood
Any news on this ? It would be really nice to have, for many apps

After 1,5 years of this issue opened, MD2 still don't have it? Really?
Maybe someone have a custom realisation of this component (CDK, huh)?

I use primeng for the slider range. Hope material add it

Any news?

This is not cool and not usual at all:

image

馃槥

Its a low priority but very usefull for everyone :(

Finally it's on Material spec! 馃帀

Ref: https://material.io/design/components/sliders.html#usage

Bumping the priority since this is part of the spec now. FYI to everyone watching this thread: you may want to follow https://github.com/angular/material2/issues/10774 as well, as it's a pre-req to making the material version

When we can expect range slider in angular material guys..?

This feature is very important. Having 2 slides for max and min value is not a user experience i would want

馃憤 馃

As an alternative I've found this component:
https://www.primefaces.org/primeng/#/slider

@Kiennyo but the styling is a struggle! were you able to make it look like angular material one or at least ionic?

Any news on this i see they have no plans for this in the docs

Are there any news? Would love this feature.

+1

+1

any news?

Maybe you should see #13324

Thanks @odahcam for your redirection 馃憤

You're welcome.

use my range slider its based on angular material slider and its modifed, with sample angular application
https://github.com/dinukasaminda/angular-material-range-slider

Capture

(I'm going through the highest voted issues today an commenting on their status)

We still consider this something that we want to add, but it's still one of the lower-priority features in the backlog (compared to things like virtual scrolling for table, density theming, improving CDK documentation, etc.). As I mentioned in my recent ng-conf talk, we're doing some work now to integrate MDC Web into our components, so we don't want to rework our slider to support range selections knowing that the MDC implementation also doesn't support this yet.

Good to see MDC is comming, I hope this change to reduce the amount of work for you guys, so you can create more awesome stuff.

@AdditionAddict unfortunately no :(
I need it so bad too...

Seems like even Flutter now got range slider. I wonder if this would bump range slider dev priority.
https://medium.com/flutter/announcing-flutter-1-7-9cab4f34eacf
https://github.com/flutter/flutter/pull/31681?source=post_page---------------------------

I solved this issue by using the ion-range component from Ionic Framework.
It's super easy to integrate to an angular project.

Screen Shot 2019-07-30 at 2 39 20 PM

Read the comment from the guy above me... Did you guys remember what i wrote before 2 years?
https://github.com/angular/components/issues/1331#issuecomment-275187044

@PetrSchmeister yes, it uses:

https://angular-slider.github.io/ng5-slider/

EDIT - Seems like reactive form control support is broken for this with two sliders :(
This looks like the way to go for now! Thanks!

I solved this issue by using the ion-range component from Ionic Framework.
It's super easy to integrate to an angular project.

Screen Shot 2019-07-30 at 2 39 20 PM

@djabif I actually am not finding it easy to just integrate a single component from ionic into an already existing angular project, do you have any tutorials or instructions for that?

I ended up using this one:

https://www.primefaces.org/primeng/showcase/#/slider

It was easy to just add that one component, but it's also a bit broken with reactive forms :(

Any milestone when this can be included? Maybe for 10.1 or 11?
Flutter Material got this already, before Angular Material that is now in version 10 :/

any updates? We are waiting for a range slider :)

+1

@wagnermaciel super excited to see this get assigned to you! Any chance that means you're working this?

This is being added as part of the MDC-based slider that's currently in progress.

Waiting for range slider. :)

Was this page helpful?
0 / 5 - 0 ratings