define(['ojs/ojlistdataproviderview'], function(ListDataProviderView) {
// Application should call API on ListDataProviderView
})
Typescript Import Format
//This class is exported directly as module. To import it import ListDataProviderView= require("ojs/ojlistdataproviderview");
Generic Parameters
Parameter
Description
K
Type of output key
D
Type of output data
Kin
Type of input key
Din
Type of input data
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
Provides list based optimizations for oj.DataProvider. Supports fetchFirst starting at arbitrary key or index offset, sortCriteria,
and field mapping. Please see the select demos for examples of DataMapping Select
Determines whether this DataProvider supports certain feature.
Parameters:
Name
Type
Description
capabilityName
string
capability name. Supported capability names
are determined by the underlying dataprovider.
Since:
4.1.0
Returns:
capability information or null if unsupported
Type
Object
getTotalSize() : {Promise.<number>}
Return the total number of rows in this dataprovider
Returns:
Returns a Promise which resolves to the total number of rows. -1 is unknown row count.
Type
Promise.<number>
isEmpty() : {"yes"|"no"|"unknown"}
Return a string that indicates if this data provider is empty
Returns:
a string that indicates if this data provider is empty. Valid values are:
"yes": this data provider is empty.
"no": this data provider is not empty.
"unknown": it is not known if this data provider is empty until a fetch is made.