Template.render.value method

This topic has not yet been rated - Rate this topic

Renders a template based on the specified URI.

Syntax


template.render.value(href, dataContext, container).done( /* Your success and error handlers */ );

Parameters

href

Type: String

The URI from which to load the template.

dataContext

Type: Object

The object to use for default data binding.

container

Type: DOMElement

The element to which to add this rendered template. If this parameter is omitted, a new DIV is created.

Return value

Type: Promise

A promise that is completed after binding has finished. The value is either the object in the container parameter or the created DIV.

Requirements

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.