Condividi tramite


CellSpanningLayout.groupInfo property

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

Syntax

<div 
    data-win-control="WinJS.UI.ListView"
    data-win-options="{layout: {type: WinJS.UI.CellSpanningLayout, groupInfo: value}}">
</div>
var groupInfo = cellSpanningLayout.groupInfo;
cellSpanningLayout.groupInfo = groupInfo;

Property value

Type: Function

A function that returns an object that contains these properties:

enableCellSpanning

Set to true to allow the ListView to contain items of multiple sizes (items that span multiple cells).

cellWidth

The width of the base cell.

cellHeight

The height of the base cell.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

CellSpanningLayout