define(['ojs/ojtreedataproviderview'], function(TreeDataProviderView) {
// Application should call API on TreeDataProviderView
})
Typescript Import Format
//This class is exported directly as module. To import it import TreeDataProviderView= require("ojs/ojtreedataproviderview");
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
A TreeDataProviderView if the row can (but doesn't have to) have children; or null if the row cannot have children.
Use the isEmpty method on the returned TreeDataProviderView to determine if it currently has children.
Type
TreeDataProviderView
|
null
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.