Skip to content

Commit 92f6023

Browse files
committed
Merge branch 'master' of https://github.com/surveyjs/widgets
2 parents b021d43 + cc0e9c7 commit 92f6023

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
<a name="1.0.41"></a>
6+
## [1.0.41](https://github.com/surveyjs/widgets/compare/v1.0.40...v1.0.41) (2018-08-29)
7+
8+
9+
10+
<a name="1.0.40"></a>
11+
## [1.0.40](https://github.com/surveyjs/widgets/compare/v1.0.39...v1.0.40) (2018-08-28)
12+
13+
14+
515
<a name="1.0.39"></a>
616
## [1.0.39](https://github.com/surveyjs/widgets/compare/v1.0.38...v1.0.39) (2018-08-21)
717

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "surveyjs-widgets",
3-
"version": "1.0.39",
3+
"version": "1.0.41",
44
"scripts": {
55
"start": "npm run build && live-server",
66
"watch": "webpack --env.buildType dev --watch",

src/nouislider.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ function init(Survey) {
2626
{
2727
name: "rangeMax:number",
2828
default: 100
29+
},
30+
{
31+
name: "pipsMode",
32+
default: "positions"
33+
},
34+
{
35+
name: "pipsValues:itemvalues",
36+
default: [0, 25, 50, 75, 100]
37+
},
38+
{
39+
name: "pipsDensity:number",
40+
default: 5
2941
}
3042
]);
3143
},
@@ -41,9 +53,9 @@ function init(Survey) {
4153
step: question.step,
4254
tooltips: true,
4355
pips: {
44-
mode: "positions",
45-
values: [0, 25, 50, 75, 100],
46-
density: 5
56+
mode: question.pipsMode || "positions",
57+
values: question.pipsValues || [0, 25, 50, 75, 100],
58+
density: question.pipsDensity || 5
4759
},
4860
range: {
4961
min: question.rangeMin,

0 commit comments

Comments
 (0)