WinJS.UI.GridLayout object

1 out of 6 rated this helpful - Rate this topic

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.

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

PropertyDescription

backdropColor

Gets or sets the fill color for the default pattern used for the backdrops.

disableBackdrop

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.

groupHeaderPosition Property

Gets or sets the position of group headers.

groupInfo Property

Gets or sets a function that enables cell-spanning and establishes base cell dimensions.

horizontal Property

Gets a value that indicates whether items are laid out horizontally.

itemInfo

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.

maxRows Property

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

Ui.js

See also

ListView

 

 

Build date: 12/5/2012

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