number
Numeric input with up/down spinners. Stores a number (not a string), with optional min, max, and step.
Stored value
number
Supports
- Min / max bounds and step increments
- Coerces empty input to `0` so consumers always see a number
Config options
minnumber- Minimum allowed value.
maxnumber- Maximum allowed value.
stepnumberdefault:1- Increment for the spinner / arrow keys.
placeholderstring- Greyed-out hint shown when the input is empty.
Example
json
{ "id": "ctrl_columns",
"type": "number",
"label": "Columns",
"attributeKey": "columns",
"default": 3,
"min": 1,
"max": 6,
"parentPanelId": "panel" }
Gotchas
Heads up
Empty input becomes `0`, not `null` or empty string. If you need "unset" semantics, pair with a boolean toggle.
Heads up
Min/max are advisory — bound-checks happen via the underlying control but not enforced server-side. Validate again on save if it matters.