Template.renderItem method

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

WinJS 1.0

Namespace

WinJS.Binding

See also

Template