Share via


WinJS.Binding.Template constructor

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 WinJS version

WinJS 1.0

Namespace

WinJS.Binding

See also

Template