Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.68 KB

BindingOptions.md

File metadata and controls

58 lines (36 loc) · 1.68 KB
title BindingOptions
titleTemplate title - API / NativeScript
description The options object used in the Bindable.bind method.
contributors false

Defined in: ui/core/bindable/bindable-types.ts

The options object used in the Bindable.bind method.

Properties

expression?

optional expression?: string;

Defined in: ui/core/bindable/bindable-types.ts

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


sourceProperty

sourceProperty: string;

Defined in: ui/core/bindable/bindable-types.ts

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


targetProperty

targetProperty: string;

Defined in: ui/core/bindable/bindable-types.ts

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


twoWay?

optional twoWay?: boolean;

Defined in: ui/core/bindable/bindable-types.ts

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.