Control primitive number

default.control

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

Source:
See:

Methods

(static) initialize()

Source:

(static) normalize()

Source:

(static) validate(value)

Parameters
Name Type Description
value number
Source: