Share via


WinJS.UI.CellSpanningLayout object

Represents a layout for the ListView in which items are arranged in a grid and items can span multiple grid cells.

Syntax

<div 
    data-win-control="WinJS.UI.ListView" 
    data-win-options="{layout: {type: WinJS.UI.CellSpanningLayout}}">
</div>
var object = new WinJS.UI.CellSpanningLayout();

Members

The CellSpanningLayout object has these types of members:

  • Constructors
  • Methods
  • Properties

Constructors

The CellSpanningLayout object has these constructors.

Constructor Description
CellSpanningLayout

Creates a new CellSpanningLayout.

 

Methods

The CellSpanningLayout object has these methods.

Method Description
dragLeave

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

dragOver

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

executeAnimations

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

getAdjacent

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

hitTest

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

initialize

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

itemsFromRange

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

layout

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

setupAnimations

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

uninitialize

This API supports the WinJS infrastructure and is not intended to be used directly from your code.

 

Properties

The CellSpanningLayout object has these properties.

Property Access type Description

groupHeaderPosition

Read/write

Gets or sets the position of group headers relative to their items.

groupInfo

Read/write

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

itemInfo

Read/write

Required. 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. Setting this function improves performance because the ListView can allocate space for an item without having to measure it first.

maximumRowsOrColumns

Read/write

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

numberOfItemsPerItemsBlock

Read-only

This API supports the Windows Library for JavaScript infrastructure and is not intended to be used directly from your code.

orientation

Read/write

Gets or sets the orientation of the CellSpanningLayout. For a CellSpanningLayout, this property always returns Orientation.horizontal.

 

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI