Repeater.template property

Applies to Windows and Windows Phone

Gets or sets a WinJS.Binding.Template or custom rendering function that defines the HTML of each item within the Repeater.

Syntax


<div 
    data-win-control="WinJS.UI.Repeater" 
    data-win-options="{ template : value}" >
</div>


var template = repeater.template;
repeater.template = template;

Property value

Type: WinJS.Binding.Template

A WinJS.Binding.Template or a custom rendering function that defines the HTML of each item within the Repeater.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Ui.js

See also

Repeater

 

 

Show:
© 2014 Microsoft