define(['ojs/ojasyncvalidator-length'], function(AsyncLengthValidator) {
// Application should call API on AsyncLengthValidator
})
Typescript Import Format
//This class is exported directly as module. To import it import AsyncLengthValidator= require("ojs/ojasyncvalidator-length");
JET In Typescript
A detailed description of working with JET elements and classes in your typescript project can be found at:
JET Typescript Usage.
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.
Description
Constructs an AsyncLengthValidator ensures the value entered is within a given length.