共用方式為


CellSpanningLayout.maximumRowsOrColumns property

Gets or sets the maximum number of rows or columns, depending on the orientation, to display before content begins to wrap.

Syntax

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

Property value

Type: Number

The maximum number of rows or columns, depending on the orientation, to display before content begins to wrap. A value of 0 indicates that there is no maximum. The default value is 0.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

CellSpanningLayout