Default controls
Primitives
Formats
Control types
Requires
- bauplan.control.view module
- jQuery
- Lodash
- Moment
- datejs
- Larynx
Members
(inner) instantValidation :boolean
Type:
- boolean
- Source:
(inner) numberInit
Properties:
Name | Type | Description |
---|---|---|
instantValidation |
boolean | |
numberValidation |
function |
- Source:
Methods
(inner) normalizeNumber(value) → {number}
Ensure a number is a number
Parameters
Name | Type | Description |
---|---|---|
value |
* | Value to be normalised |
- Source:
Returns
Number or undefined
- Type
- number
(inner) numberValidation()
Checks a number to see that it validates against any of the following validation constraints set on the property’s schema:
- multipleOf
- maximum
- exclusiveMaximum
- minimum
- exclusiveMinimum
- maxLength
- minLength
- exactLength
Error codes
- {{primitive}}.not-multiple-of
- {{primitive}}.more-than-maximum
- {{primitive}}.more-than-exclusive-maximum
- {{primitive}}.less-than-minimum
- {{primitive}}.less-than-exclusive-minimum
- {{primitive}}.maxlength
- {{primitive}}.minlength
(where primitive is this.primitive)
- Source: