WinJS.Binding.defaultBind function

Applies to Windows and Windows Phone

Creates a one-way binding between the source object and the destination object.

Warning  Do not attempt to bind data to the ID of an HTML element.

Syntax


var object = WinJS.Binding.defaultBind(source, sourceProperties, dest, destProperties);

Parameters

source

Type: object

The source object.

sourceProperties

Type: object

The path on the source object to the source property.

dest

Type: object

The destination object.

destProperties

Type: object

The path on the destination object to the destination property.

Return value

Type: Object

An object with a cancel method that is used to coalesce bindings.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Binding

Library

Base.js

 

 

Show:
© 2014 Microsoft