Final Class: AsyncDateTimeRangeValidator

Oracle® JavaScript Extension Toolkit (JET)
17.0.0

F92240-01

Since:
  • 8.0.0
Module:
  • ojasyncvalidator-datetimerange

QuickNav

Fields

Description

Constructs an AsyncDateTimeRangeValidator ensures the value provided is within a given range.


Usage

Signature:

final class AsyncDateTimeRangeValidator<V> implements AsyncValidator<V>

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

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 AsyncDateTimeRangeValidator(options)

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

Fields

hint :Promise.<(string|null)>

A message to be used as hint.

Methods

validate(value: V): Promise<void>

Validates the minimum + maximum conditions. 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>