cancel
Showing results for 
Search instead for 
Did you mean: 

Change the default silder selection range in SAP UI5

0 Kudos

Hi

I have 2 sliders for date-time range selection as shown above. Say the user selects 7 on first slider, it implies that the selection is indeed from 7:00 AM 15th March to 0:00 AM o 21st March.

Hence I want to reverse the slider selection. When user selects 7:00 on first slider, the values should be highlighted from 7:00 to 23:00 on the first slider to represent the underlying logic.

I tried reversing the slider max & min values and also tried giving negative values.

But nothing works properly.

Kindly suggest.

junwu
Active Contributor
0 Kudos

why? you just want some fun or it is real user requirement?

0 Kudos

haha.

It's a user requirement

Accepted Solutions (0)

Answers (1)

Answers (1)

gill367
Active Contributor
0 Kudos

Why You cannot use the range slider instead of two separate sliders.

https://sapui5.hana.ondemand.com/#/sample/sap.m.sample.RangeSlider/preview

This should perfectly fit your requirement.

Regards,

Sarbjeet Singh