I would like to create a slider via a component with parameters how many posts should be used. However, the “Unit Pickers & Sliders” help does not help me very much because the selection with own units does not work correctly. I want to set the slider from 0 - 10 posts and it still uses comma values!
{
"amountPosts" : {
"label" : "Amount posts",
"type" : "dimension",
"initial" : "0",
"slider" : true,
"units" : [
"p"
],
"ranges" : {
"p" : { "min" : 0, "max" : 10, "step" : 1 }
}
}
}
The result is a slider with decimal values:
And what exactly does the "slider"
parameter should do?