utils/observablemixin
module
Interfaces
module:utils/observablemixin~Observablemodule:utils/observablemixin~ObservableDualBindChainmodule:utils/observablemixin~ObservableMultiBindChainmodule:utils/observablemixin~ObservableSingleBindChain
Type Definitions
module:utils/observablemixin~DecoratedMethodEventmodule:utils/observablemixin~ObservableChangeEventmodule:utils/observablemixin~ObservableSetEventmodule:utils/observablemixin~ObservableWithProperty
Functions
ObservableMixin( base ) → Mixed<Base, Observable>module:utils/observablemixin~ObservableMixin:EXTENDSA mixin that injects the "observable properties" and data binding functionality described in the
Observableinterface.This function creates a class that inherits from the provided
baseand implementsObservableinterface.class BaseClass { ... } class MyClass extends ObservableMixin( BaseClass ) { // This class derives from `BaseClass` and implements the `Observable` interface. }Copy codeRead 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 () => Observablemodule:utils/observablemixin~ObservableMixin:NO_ARGUMENTSA mixin that injects the "observable properties" and data binding functionality described in the
Observableinterface.This function creates a class that implements
Observableinterface.class MyClass extends ObservableMixin() { // This class implements the `Observable` interface. }Copy codeRead 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