Usage
Javascript Import Format
define(['ojs/ojdataprovider'], function(dataprovider) { // Application should call API on dataprovider.FetchByOffsetMixin })
Typescript Import Format
//To import this namespace, use the format below.
import {FetchByOffsetMixin} from "ojs/ojdataprovider";
For additional information visit:
Methods
-
(static) applyMixin(derivedCtor: {new(): DataProvider<any, any>}): any;
-
Apply this mixin to another class
Parameters:
Name Type Description derivedCtor
function the constructor of an existing class Examples
class CustomDataProvider<K, D> implements DataProvider<K, D> { // Add a stand-in property to satisfy the compiler fetchByOffset: (parameters: FetchByOffsetParameters<D>) => Promise<FetchByOffsetResults<K, D>>; constructor() { // Constructor implementation } } FetchByOffsetMixin.applyMixin(CustomDataProvider);
function CustomDataProvider() { // Constructor implementation } FetchByOffsetMixin.applyMixin(CustomDataProvider);