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 derivedCtorfunction the constructor of an existing class - Since:
 - 11.0.0
 
Returns:
- Type
 - void
 
Examples
Apply the mixin in Typescript:
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);Apply the mixin in Javascript:
function CustomDataGridProvider() { // Constructor implementation } EventTargetMixin.applyMixin(CustomDataGridProvider);