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 |
|
See also
Build date: 12/5/2012