Binding Class

File
wijmo.js
Module
wijmo

Provides binding to complex properties (e.g. 'customer.address.city')

Constructor

Properties

Methods

Constructor

constructor

constructor(path: string): Binding

Initializes a new instance of the Binding class.

Parameters
Returns
Binding

Properties

path

Gets or sets the path for the binding.

In the simplest case, the path is the name of the property of the source object to use for the binding (e.g. 'street').

Sub-properties of a property can be specified by a syntax similar to that used in JavaScript (e.g. 'address.street').

Type
string

Methods

getValue

getValue(object: any): any

Gets the binding value for a given object.

If the object does not contain the property specified by the binding path, the method returns null.

Parameters
Returns
any

setValue

setValue(object: any, value: any): void

Sets the binding value on a given object.

If the object does not contain the property specified by the binding path, the value is not set.

Parameters
Returns
void