min |
number
|
<optional>
|
the minimum number value of the entered value. |
max |
number
|
<optional>
|
the maximum number value of the entered value. |
hint |
Object
|
<optional>
|
an optional object literal of hints to be used.
Properties
Name |
Type |
Argument |
Description |
max |
string
|
<optional>
|
a hint used to indicate the allowed maximum. When not present,
the default hint is the resource defined with the key
oj-validator.range.number.hint.max .
Tokens:
{max} - the maximum
Usage:
Enter a number less than or equal to {max} |
min |
string
|
<optional>
|
a hint used to indicate the allowed minimum. When not present,
the default hint is the resource defined with the key
oj-validator.range.number.hint.min .
Tokens:
{min} the minimum
Usage:
Enter a number greater than or equal to {min} |
inRange |
string
|
<optional>
|
a hint used to indicate the allowed range. When not
present, the default hint is the resource defined with the key
oj-validator.range.number.hint.inRange .
Tokens:
{min} the minimum
{max} the maximum
Usage:
Enter a number between {min} and {max} |
|
messageDetail |
Object
|
<optional>
|
an optional object literal of custom error messages to
be used.
Properties
Name |
Type |
Argument |
Description |
rangeUnderflow |
string
|
<optional>
|
the detail error message to be used when
input value is less than the set minimum value. When not present, the default detail message is
the resource defined with the key
oj-validator.range.number.messageDetail.rangeUnderflow .
Tokens:
{value} - value entered by the user
{min} - the minimum allowed value
Usage:
The number {value} must be greater than or equal to {min}. |
rangeOverflow |
string
|
<optional>
|
the detail error message to be used when
input value exceeds the maximum value set. When not present, the default detail message is
the resource defined with the key
oj-validator.range.number.messageDetail.rangeOverflow .
Tokens:
{value} - value entered by the user
{max} - the maximum allowed value
Usage:
The number {value} must be less than or equal to {max}. |
|
messageSummary |
Object
|
<optional>
|
optional object literal of custom error summary message
to be used.
Properties
Name |
Type |
Argument |
Description |
rangeUnderflow |
string
|
<optional>
|
the summary of the error message when
input value is less than the set minimum value. When not present, the default message summary is
the resource defined with the key
oj-validator.range.number.messageSummary.rangeUnderflow . |
rangeOverflow |
string
|
<optional>
|
the summary of the error message when
input value exceeds the maximum value set. When not present, the default message summary is
the resource defined with the key
oj-validator.range.number.messageSummary.rangeOverflow . |
|