new module:ct-core /validator /Numeric Range Validator(error Messageopt)
The NumericRangeValidator
is a module:ct-trading/validation/Validator
that ensures the
range to be validated against is valid.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
errorMessage |
string |
<optional> |
i18n key for error message to be passed to the ValidationResult. |
Methods
validate(properties, oValidation Result)
Determine whether the given properties containing the range and the object that sets the validation result are valid.
module:br-validation/ValidationResult
.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
properties |
object |
A named set of properties to validate. Properties
|
|||||||||
oValidationResult |
module:br-validation |
The result object that the outcome of the validation will be set on. |