EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

WinJS.UI.ListView constructor

Applies to Windows and Windows Phone

Creates a new ListView.

Syntax


var listView = new WinJS.UI.ListView(element, options);

Parameters

element

Type: Object

The DOM element that hosts the ListView control.

options [optional]

Type: Object

An object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties or events. Event names must begin with "on". For example, to provide a handler for the selectionchanged event, add a property named "onselectionchanged" to the options object and set its value to the event handler.

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.UI

Library

Ui.js

See also

ListView
Adding WinJS Controls
Quickstart: Add a ListView

 

 

Mostrar:
© 2014 Microsoft