Usage
Typescript Import Format
//To import this namespace, use the format below.
import {EventTargetMixin} from "ojs/ojeventtarget";
For additional information visit:
Methods
-
(static) applyMixin(derivedCtor) : {void}
-
Apply this mixin to another class
Parameters:
Name Type Description derivedCtor
function the constructor of an existing class - Since:
- 11.0.0
Returns:
- Type
- void
Examples
class CustomDataGridProvider<D> implements DataGridProvider<D> { // Add a stand-in property to satisfy the compiler addEventListener: () => void; removeEventListener: () => void; constructor() { // Constructor implementation } } EventTargetMixin.applyMixin(CustomDataGridProvider);
function CustomDataGridProvider() { // Constructor implementation } EventTargetMixin.applyMixin(CustomDataGridProvider);