angularjs-slider icon indicating copy to clipboard operation
angularjs-slider copied to clipboard

How to show the range of dates on this slider?

Open webservconsultant opened this issue 10 years ago • 6 comments

Steps to reproduce

  1. How to show the dates as ranges on the slider
  2. How to display date format label

Demo: http://jsfiddle.net/webservconsultant/u5gsjqtp/55/

Expected behaviour

Should display dates as labels Range should be dates (between 2 dates)

Actual behaviour

Nothing happens.

webservconsultant avatar Mar 22 '16 02:03 webservconsultant

Did you modify the fiddle since the creation of the issue? I don't see any problem on your example...

ValentinH avatar Mar 22 '16 07:03 ValentinH

Yes, I did, But slight problem though. I would like the labels to display like 'Aug. 13th 2011' (something of different format). Doesn't look like it is recognizing my translate method.

webservconsultant avatar Mar 22 '16 13:03 webservconsultant

Well, this is because stepsArray is a helper method that enables you to directly provide the values you want to be displayed.

You should use translate directly, and the correct model, high, floor, ceil and step options.

ValentinH avatar Mar 22 '16 13:03 ValentinH

would you mind putting some quick sample for the dates please-thanks

webservconsultant avatar Mar 22 '16 14:03 webservconsultant

You have this http://jsfiddle.net/2umvx8dm/ from #237

ValentinH avatar Mar 22 '16 15:03 ValentinH

awesome - thanks for the link

webservconsultant avatar Mar 22 '16 15:03 webservconsultant