utils/observablemixin
module
Interfaces
-
module:utils/observablemixin~Observable
-
module:utils/observablemixin~ObservableDualBindChain
-
module:utils/observablemixin~ObservableMultiBindChain
-
module:utils/observablemixin~ObservableSingleBindChain
Type Definitions
-
module:utils/observablemixin~DecoratedMethodEvent
-
module:utils/observablemixin~ObservableChangeEvent
-
module:utils/observablemixin~ObservableSetEvent
-
module:utils/observablemixin~ObservableWithProperty
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