Page 1 of 1

Show time using slider label?

Posted: Fri Mar 07, 2014 3:50 am
by Milton Davis

How do I change the slider label to show time?

var slider = Appery("sliderAvailFrom");
var sliderValue = slider.val();
slider.val(sliderValue/24 + ":0");

The label attached to the slider doesn't seem to let me enter the character ":". Any suggestions?


Show time using slider label?

Posted: Fri Mar 07, 2014 7:00 am
by Nikita

Hello Milton,

For what do you add “:0”?
You should refresh the slider after value setting:'

Appery("sliderAvailFrom").refresh();


Show time using slider label?

Posted: Fri Mar 07, 2014 9:50 pm
by Milton Davis

I would like to use the slider as 1 to 12 in increments of 1. Then change the label to display the value ":00" as if it was a time.

So for example 2 would be 2:00...

I can't seem to add a ":" or other non-numeric valuve to the label.


Show time using slider label?

Posted: Fri Mar 07, 2014 10:12 pm
by Maryna Brodina

Not sure if it's possible to do with standard Slider. You would need to search for jQuery/jqm plugin which allows to do that.