WinJS.Binding.Template constructor

Applies to Windows and Windows Phone

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.

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

See also

Template

 

 

Show:
© 2014 Microsoft