Control primitive integer

default.control

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
Source:
See:

Methods

(static) initialize()

Source:

(static) normalize()

Source:

(static) validate(value, optionsopt)

Checks:

Parameters
Name Type Attributes Description
value number
options object <optional>
Source: