Represents a grid layout for the ListView in which items are arranged horizontally and vertically.
Syntax
<div data-win-control="WinJS.UI.ListView" data-win-options="{layout: {type: WinJS.UI.GridLayout}}"> </div>
var object = new WinJS.UI.GridLayout();
Members
The GridLayout object has these types of members:
Methods
The GridLayout object has these methods.
| Method | Description |
|---|---|
| calculateFirstVisible |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| calculateLastVisible |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| endLayout Method |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| getItemPosition Method |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| getKeyboardNavigatedItem |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| getScrollbarRange Method |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| GridLayout Constructor |
Creates a new GridLayout object. |
| hitTest Method |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| init Method |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| itemsAdded |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| itemsMoved |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| itemsRemoved |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| layoutHeader Method |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| layoutItem Method |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| prepareItem Method |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| releaseItem |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| reset Method |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| setSite Method |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| startLayout Method |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
| updateBackdrop |
This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code. |
Properties
The GridLayout object has these properties.
| Property | Description |
|---|---|
|
Gets or sets the fill color for the default pattern used for the backdrops. | |
|
Gets or sets a value that indicates whether the layout should disable the backdrop feature which avoids blank areas while panning in a virtualized list. | |
|
Gets or sets the position of group headers. | |
|
Gets or sets a function that enables cell-spanning and establishes base cell dimensions. | |
|
Gets a value that indicates whether items are laid out horizontally. | |
|
Gets or sets a function that returns the width and height of an item, as well as whether it should appear in a new column. | |
|
Gets or sets the maximum number of rows displayed by the ListView. |
Remarks
This object implements the ILayout interface.
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