The tbNumericEditor
component is numeric input, similar to tbSimpleEditor
but can render an add-on to the input visual element.
When you need a numeric editor but without the visual elements you can use
tbSimpleEditor
with the editorType
attribute with value number
.
This component uses the TubularModel
to retrieve the model information.
Param | Type | Details |
---|---|---|
name | string |
Set the field name. |
value | object |
Set the value. |
isEditing | boolean |
Indicate if the field is showing editor. |
showLabel | boolean |
Set if the label should be display. |
label | string |
Set the field's label otherwise the name is used. |
placeholder | string |
Set the placeholder text. |
help | string |
Set the help text. |
required | boolean |
Set if the field is required. |
format | string |
Indicate the format to use, C for currency otherwise number. |
readOnly | boolean |
Set if the field is read-only. |
min | number |
Set the minimum value. |
max | number |
Set the maximum value. |
step | number |
Set the step setting, default 'any'. |
defaultValue | string |
Set the default value. |