Namespace: Templates

WinJSContrib. Templates

Methods

<static> get(uri) → {WinJS.Binding.Template}

get a template from it's path

Parameters:
Name Type Description
uri string

path to template file

Source:
Returns:

template object

Type
WinJS.Binding.Template

<static> get(template, args) → {function}

generate a rendering function that takes an item promise, and return a DOM element

Parameters:
Name Type Description
template WinJS.Binding.Template

template object

args Object

definition of interactive elements

Source:
Returns:

rendering function that takes an item promise, and return a DOM element

Type
function

<static> interactive(uri, args) → {function}

get a template and turn it to a rendering function that takes an item promise, and return a DOM element

Parameters:
Name Type Description
uri string

path to template file

args Object

definition of interactive elements

Source:
Returns:

rendering function that takes an item promise, and return a DOM element

Type
function