Preview 2.0 is now in Public Beta!
Read the Announcement
Note: You are on the beta version of our docs. This is a work in progress and may contain broken links and pages.
BindingOptions
interface BindingOptions {
  expression: string;
  sourceProperty: string;
  targetProperty: string;
  twoWay: boolean;
}
The options object used in the Bindable.bind method.

Summary

Properties

expression

expression?: string
An expression used for calculations (convertions) based on the value of the property.

sourceProperty

sourceProperty: string
The property name of the source object (typically the ViewModel) to bind to.

targetProperty

targetProperty: string
The property name of the target object (that is the Bindable instance) to bind the source property to.

twoWay

twoWay?: boolean
True to establish a two-way binding, false otherwise. A two-way binding will synchronize both the source and the target property values regardless of which one initiated the change.