utils/observablemixin
@ckeditor/ckeditor5-utils/src/observablemixin
Filtering
Interfaces
-
Observable
module:utils/observablemixin~Observable
Type Definitions
-
DecoratedMethodEvent
module:utils/observablemixin~DecoratedMethodEvent
-
ObservableChangeEvent
module:utils/observablemixin~ObservableChangeEvent
-
ObservableSetEvent
module:utils/observablemixin~ObservableSetEvent
Functions
-
ObservableMixin( base ) → Mixed<Base, Observable>
module:utils/observablemixin~ObservableMixin:EXTENDS
A mixin that injects the "observable properties" and data binding functionality described in the
Observable
interface.This function creates a class that inherits from the provided
base
and implementsObservable
interface.class BaseClass { ... } class MyClass extends ObservableMixin( BaseClass ) { // This class derives from `BaseClass` and implements the `Observable` interface. }
Read more about the concept of observables in the:
- Event system and observables section of the Core editor architecture guide,
- Observables deep-dive guide.
Type parameters
Base : extends Constructor<Emitter>
Parameters
base : Base
Returns
Mixed<Base, Observable>
-
ObservableMixin() → new () => Observable
module:utils/observablemixin~ObservableMixin:NO_ARGUMENTS
A mixin that injects the "observable properties" and data binding functionality described in the
Observable
interface.This function creates a class that implements
Observable
interface.class MyClass extends ObservableMixin() { // This class implements the `Observable` interface. }
Read more about the concept of observables in the:
- Event system and observables section of the Core editor architecture guide,
- Observables deep dive guide.
Returns
new () => Observable
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.