Final Class: AsyncDateRestrictionValidator

Oracle® JavaScript Extension Toolkit (JET)
15.1.0

F83698-01

Since:
  • 8.0.0
Module:
  • ojasyncvalidator-daterestriction

QuickNav

Fields

Description

Constructs an AsyncDateRestrictionValidator that ensures the value provided is not in a disabled entry of dayMetaData.


Usage

Signature:

final class AsyncDateRestrictionValidator<V> implements AsyncValidator<V>

Typescript Import Format
//This class is exported directly as module. To import it
import AsyncDateRestrictionValidator= require("ojs/ojasyncvalidator-daterestriction");

For additional information visit:


Final classes in JET

Classes in JET are generally final and do not support subclassing. At the moment, final is not enforced. However, this will likely change in an upcoming JET release.


See:

Constructor

new AsyncDateRestrictionValidator(options)

Parameters:
Name Type Argument Description
options DateRestrictionValidator.ValidatorOptions <optional>
an object literal used to provide the following properties
See:

Fields

hint :Promise.<(string|null)>

A message to be used as hint. As there exists no hint for AsyncDateRestrictionValidator, default is to return null.

Methods

validate(value: V): Promise<void>

Validates whether the date provided is part of disabled date. Returns a Promise which resolves when valid and rejects which invalid.
Parameters:
Name Type Description
value string that is being validated
Returns:
Type
Promise.<void>