فهرست منبع

[search] Added step support to slider

Enrico Berti 11 سال پیش
والد
کامیت
8b6f05f
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      apps/search/src/search/templates/search2.mako

+ 4 - 3
apps/search/src/search/templates/search2.mako

@@ -1619,9 +1619,10 @@ $(document).ready(function () {
       var _el = $(element);
       var _options = $.extend(valueAccessor(), {});
       _el.slider({
-        min: _options.min,
-        max: _options.max,
-        handle: _options.handle?_options.handle:'circle',
+        min: _options.min ? _options.min : 1,
+        max: _options.max ? _options.max : 10,
+        step: _options.step ? _options.step : 1,
+        handle: _options.handle ? _options.handle : 'circle',
         value: _options.data(),
         tooltip: 'always'
       });