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 |
|
See also
Build date: 12/5/2012