ListView.layout property

2 out of 3 rated this helpful - Rate this topic

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.

Remarks

Groups and cell-spanning are not supported when using a ListLayout.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

WinJS.UI

Library

Ui.js

See also

ListView
GridLayout
ListLayout

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.