Number
The Number component can be used in any form to provide a numeric input field. It can be configured to be read-only, disabled, required, and can have a placeholder, helper text, and default value.
Examples
A simple number field with validation and dynamic support.
Form Data:
{}
Field Properties
Properties used by this field (inside meta
field in schema)
Name | Description | Type |
---|---|---|
displayName | The label shown above the number field | string |
displayName | The label shown above the number field | string |
displayType | The type of the field to be displayed | string |
placeholder | The hint shown in the number field | string |
readOnly | A readonly field is not editable and value cannot be changed | boolean |
isDisabled | A disabled field is not editable and value cannot be changed | boolean |
required | Indicates whether the field is mandatory | boolean |
pattern | A regex pattern that the field value must match | string |
min | Minimum value for the field | number |
max | Maximum value for the field | number |
description | Helper text or additional description shown below the number field | string |
value | The default value of the field | number |
overrideDynamicSupport | To override the default behavior of showing static and dynamic options | boolean |