[英]$.noUiSlider vertical slider with max value at top and min value at bottom
$ .noUiSlider滑塊在使其垂直並嘗試使用“方向”選項嘗試在頂部獲得最大值和在底部獲得最小值時無法正常工作。 這是下面的代碼
noUiSlider.create(document.getElementById('slider-range'), {
start: [20, 50],
direction: 'rtl',
orientation: 'vertical',
tooltips: [true,true],
range: {
'min': [ 10 ],
'max': [ 90 ]
}});
您應該嘗試在最小和最大值周圍不要使用[和]:
noUiSlider.create(document.getElementById('slider-range'), {
start: [20, 50],
direction: 'rtl',
orientation: 'vertical',
tooltips: [true,true],
range: {
'min': 10,
'max': 90
}})
此處演示: https : //codepen.io/andreds/pen/BJdYqx
此處有更多詳細信息和文檔: https : //refreshless.com/nouislider/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.