简体   繁体   中英

noUiSlider: how to allow to slide till the end, even if the end value is less than step value

I am creating a slider with the following config

step: 60,
range: {
    'min': 0,
    'max': 1439
}

Now if i have max: 1339 instead of 1440 then how to allow the slider to step 59 as last step ie till the end.

currently its steps 60 and says invalid value.

You can add multiple ranges to the slider, and only set a step of 60 for the first range.

Documentation

range: {
   'min': [0, 60],
   '90%': [1380],
   'max': [1439]
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM