8.8 released—CSS Media Query support, SF Symbols and much more...
Learn more
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.