WinJS.Binding.defaultBind function
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: objectThe source object.
sourceProperties
Type: objectThe path on the source object to the source property.
dest
Type: objectThe destination object.
destProperties
Type: objectThe 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 WinJS version |
WinJS 1.0 |
Namespace |
WinJS.Binding |