Provides two way data binding between Observers and IBindable elements. This means that when the value of the Observers changes the IBindable will be updated and vice versa.

Hierarchy (View Summary)

Constructors

Accessors

  • get historyCombine(): boolean
  • Sets whether to combine history actions when applying changes to observers. This is assuming a history module is being used.

    Returns boolean

  • set historyCombine(value: boolean): void
  • Sets whether to combine history actions when applying changes to observers. This is assuming a history module is being used.

    Parameters

    • value: boolean

    Returns void

Methods

  • Links the specified observers to the specified paths.

    Parameters

    • observers: Observer | Observer[]

      The observer(s).

    • paths: string | string[]

      The path(s). The behavior of the binding depends on how many paths are passed. If an equal amount of paths and observers are passed then the binding will map each path to each observer at each index. If more observers than paths are passed then the path at index 0 will be used for all observers. If one observer and multiple paths are passed then all of the paths will be used for the observer (e.g. for curves).

    Returns void