WinJS.Binding.Template constructor

0 out of 2 rated this helpful - Rate this topic

Creates a template that provides a reusable declarative binding element.

Syntax


var template = new WinJS.Binding.Template(element, options);

Parameters

element

Type: DOMElement

The DOM element to convert to a template.

options

Type: String

If this parameter is supplied, the template is loaded from the URI and the content of the element parameter is ignored.

You can add the following options:

  • href: The URI from which to add the template.

  • enableRecycling: Specifies whether or not a previously-generated template should be used.

  • processTimeout: The number of milliseconds to delay instantiating declarative controls.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

WinJS.Binding

Library

Base.js

See also

Template

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.