如何在jqueryUI Slider中添加PIPS

时间:2015-11-03 12:23:24

标签: javascript jquery jquery-ui jquery-ui-slider

我需要在JqueryUI滑块中添加6个点。 PIPS wopuld的范围从2000年,2010年,2020年,2030年,2040年,2050年。我无法理解添加这些点数的功能。此外,目前滑块已被编码以处理步进滑动效果。这是我正在使用的代码:

function clearRange() {
SpreadsheetApp.getActive().getSheets()
.map(function (s, i) {
    if (i > 3) s.getRange('B3').clearContent().setValue(s.getName());
    })
}

1 个答案:

答案 0 :(得分:2)

默认情况下,JQuery-UI滑块没有pip。要获得点击,请参阅以下链接

https://github.com/simeydotme/jQuery-ui-Slider-Pips