Number

Allows you to display number controls for your widget. The setting supports Both “integer” and “float” parse types.


Widget Configuration Output

{
"fontSize": {
"value": 24,
"type": "px"
}
}

User Interface Output

output


JSON Schema

PropertyTypeDescriptionExample
typestringThe type of setting component to display.number
labelstringThe user friendly message to inform the user how this setting will be used.”Font size”
idstringThe variable name where the setting value will be available in the widget template.”fontSize”
defaultobjectThe default value to use when rendering the widget for the first time.
default.valuestring24
default.typestring”px”
typeMetaobjectAdditional information needed based on the selected setting type.
typeMeta.parseTypestringSupports two types: “integer” and “float”.integer