How to use different values (hours) for the slider?

UI Components for Angular
Post Reply
alucardu
Posts: 3
Joined: 22 Sep 2017, 17:18

22 Sep 2017, 17:24

I want to edit the PrimeNG slider in such a way that I can select a time period.

When the user opens the application the slider should be set at 12:00. But then the user can expand the selection all the way from 00:00 tot 23:59.

But I can't find anything in the documentation about changing the values from the slider. It's just set from 1 to 100.

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

23 Sep 2017, 17:10

Why can't you use the calendar timeonly feature. or else maintain two sliders, one for hour and other for minutes.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

alucardu
Posts: 3
Joined: 22 Sep 2017, 17:18

24 Sep 2017, 14:35

Because I want to use a slider. I might fix something using 1440 as a max value (24x60) and see if I can work out how to do it with the hours.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests