Skip to Content

Change the default silder selection range in SAP UI5

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.

doubleslider.png (19.1 kB)
doubleslider.png (18.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 21 at 10:50 PM

    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

    Add comment
    10|10000 characters needed characters exceeded