Checks that input is an integer
Output a control with the name "foo" that only accepts integers
{{control "foo" control-primitive="integer"}}
or just
{{control "foo"}}
if the type property for the "foo" property in the model schema has been set to "integer"
Error codes
- integer.not-a-number
- integer.not-an-integer
Methods
(static) initialize()
- Source:
(static) normalize()
- Source:
(static) validate(value, optionsopt)
Checks:
- number
- integer
- default.control~numberValidation
Parameters
Name | Type | Attributes | Description |
---|---|---|---|
value |
number | ||
options |
object |
<optional> |
- Source: