Final Class: AsyncRequiredValidator

Oracle® JavaScript Extension Toolkit (JET)
10.1.0

F37996-01

Since:
  • 8.0.0
Module:
  • ojasyncvalidator-required

QuickNav

Fields

Description

Constructs an AsyncRequiredValidator ensures that the value provided is not empty.


Usage

Signature:

final class AsyncRequiredValidator<V> implements AsyncValidator<V>

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

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

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

Fields

hint :Promise.<(string|null)>

A message to be used as hint, when giving a hint on the expected pattern. There is no default hint for this property.

Methods

validate(value: V): Promise<void>

Validates value to be non-empty
Parameters:
Name Type Description
value string that is being validated
Throws:
when there is no match
Type
Error
Returns:
Type
Promise.<void>