PREVIEW: This is a preview API. Preview APIs are production quality, but can be changed on a major version without a deprecation path.
Methods
-
(static) applyMixin(derivedCtor)
PREVIEW: This is a preview API. Preview APIs are production quality, but can be changed on a major version without a deprecation path.
-
Apply this mixin to another class
Parameters:
Name Type Description derivedCtorfunction the constructor of an existing class Examples
Apply the mixin in Typescript:
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 } } oj.FetchByOffsetMixin.applyMixin(CustomDataProvider);Apply the mixin in Javascript:
function CustomDataProvider() { // Constructor implementation } oj.FetchByOffsetMixin.applyMixin(CustomDataProvider);