Parameter slider with amount of posts

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:

screenshot_ 2023-11-16 um 11.07.00

And what exactly does the "slider" parameter should do?

Hello,

Since p is not a valid unit in the slider system it won’t use your unit or range. I’ll change the slider to be less strict about units sometime in December. Have a great day.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.