feat(widget-number): add range validation (#2049)

This commit is contained in:
Luis Correia
2019-02-08 20:01:08 +00:00
committed by Shawn Erquhart
parent 2d1d1c13df
commit dc44caca20
4 changed files with 56 additions and 0 deletions

View File

@ -39,6 +39,9 @@ export function getPhrases() {
required: '%{fieldLabel} is required.',
regexPattern: "%{fieldLabel} didn't match the pattern: %{pattern}.",
processing: '%{fieldLabel} is processing.',
range: '%{fieldLabel} must be between %{minValue} and %{maxValue}.',
min: '%{fieldLabel} must be at least %{minValue}.',
max: '%{fieldLabel} must be %{maxValue} or less.',
},
},
editor: {

View File

@ -1,5 +1,6 @@
export default {
PRESENCE: 'PRESENCE',
PATTERN: 'PATTERN',
RANGE: 'RANGE',
CUSTOM: 'CUSTOM',
};