Windows Dev Center

Template.bindingInitializer property

Applies to Windows and Windows Phone

Gets or sets the default binding initializer for the template.

Syntax


<div 
    data-win-control="WinJS.Binding.Template" 
    data-win-options="{ bindingInitializer : value}" >
</div>


var bindingInitializer = template.bindingInitializer;
template.bindingInitializer = bindingInitializer;

Property value

Type: Object

The default binding initializer for the template. The default value is undefined.

Remarks

If you set this property and also specify a binding initializer when bind, the binding initializer you specified at binding is used.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Binding

Library

Winjs.js

See also

Template

 

 

Show:
© 2015 Microsoft