Class pvr.controller.validators.TimeValidator
Extends
pvr.controller.validators._Validator, pvr.controller.validators.mixins._RequiredValidatorMixin,
pvr.controller.validators._RangeValidatorMixin, pvr.controller.validators._ChoicesValidatorMixin.
Extends pvr.controller.validators._Validator to validate values of type "time".
Values of type "time" are represented by pvr.controller.value.types.TimeOnly objects.
Defined in: <pvr\controller\validators\TimeValidator.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Method Attributes | Method Name and Description |
---|---|
validate(value, ignoreChoices)
Validate the specified value.
|
Method Detail
validate(value, ignoreChoices)
Validate the specified value.
- Parameters:
- value
- The value.
- ignoreChoices
- Indicates whether choices should be considered in the validation.
- Returns:
- The validation error message or null if valid.