Checks that input is a number
Output a control with the name "foo" that only accepts numbers
{{control "foo" control-primitive="number"}}
or just
{{control "foo"}}
if the type property for the "foo" property in the model schema has been set to "number"
Error codes
- number.not-a-number
- Plus those provided by default.control~numberValidation
Methods
(static) initialize()
- Source:
(static) normalize()
- Source:
(static) validate(value)
Checks:
Parameters
Name | Type | Description |
---|---|---|
value |
number |
- Source: