Skip to main content
S
3mo ago

Enums/Limited Numeric Range for Inputs

Numeric values are currently completely free. I would love to be able to limit them into a given range in their property area. I would expect as properties:

  • Minumum value/unlimited

  • Maximum value/unlimited

  • Stepping/Integer/Free (Where integer is a stepping of 1)

Sugar on the pie would be an option "Enum", where I can define a list of named values and which automatically sets:

  • Stepping to 1 (Integer)

  • Minimum value to the lowest value in the list

  • Maximum value to the highest value in the list

I often use numeric for different views/states and naming them would be great. But being able to be sure, that they are withing an expected range would be ok at least. Values set from the platform API are automatically truncated/rounded to the expected range, making especially the use of float/int more secure and predictable.

Join the discussion
Join Rive to reply J