Windows Dev Center

Template.renderItem method

Applies to Windows and Windows Phone

Renders an instance of this template bound to the data contained in item. If the recycled parameter is present, and enableRecycling is true, then the template attempts to reuse the DOM elements from the recycled parameter.

Syntax


var doM Element = template.renderItem(item, recycled);

Parameters

item

Type: Object

The object that contains the data to bind to. Only item.data is required.

recycled [optional]

Type: DOM Element

A previously-generated template instance.

Return value

Type: DOM Element

The DOM element.

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

Winjs.js

See also

Template

 

 

Show:
© 2015 Microsoft