layout property

ListView.layout property

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

Gets or sets an object that controls the layout of the ListView.

Syntax


<div data-win-control="WinJS.UI.ListView" data-win-options="{ layout : {type: WinJS.UI.GridLayout}}" ></div>
- or -
<div data-win-control="WinJS.UI.ListView" data-win-options="{ layout : {type: WinJS.UI.ListLayout}}" ></div>


var layout = listView.layout;
listView.layout = layout;

Property value

Type: Object

A GridLayout or ListLayout object that specifies the layout for the ListView. The default value is a GridLayout object.

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Namespace

WinJS.UI

Library

Ui.js

See also

ListView
GridLayout
ListLayout

 

 

Build date: 2/10/2012

Ajouts de la communauté

AJOUTER
Afficher:
© 2016 Microsoft