Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ider modify pips mode or values
  • Loading branch information
tsv2013 committed Aug 30, 2018
1 parent bcfc946 commit cc0e9c7
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/nouislider.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ function init(Survey) {
{
name: "rangeMax:number",
default: 100
},
{
name: "pipsMode",
default: "positions"
},
{
name: "pipsValues:itemvalues",
default: [0, 25, 50, 75, 100]
},
{
name: "pipsDensity:number",
default: 5
}
]);
},
Expand All @@ -41,9 +53,9 @@ function init(Survey) {
step: question.step,
tooltips: true,
pips: {
mode: "positions",
values: [0, 25, 50, 75, 100],
density: 5
mode: question.pipsMode || "positions",
values: question.pipsValues || [0, 25, 50, 75, 100],
density: question.pipsDensity || 5
},
range: {
min: question.rangeMin,
Expand Down

0 comments on commit cc0e9c7

Please sign in to comment.