CellSpanningLayout.groupHeaderPosition property

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

Syntax

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

Property value

Type: WinJS.UI.HeaderPosition**

One of the values defined by the WinJS.UI.HeaderPosition enumeration. The default value is WinJS.UI.HeaderPosition.top.

WinJS.UI.HeaderPosition.left**

Headers appear to the left of their items.

WinJS.UI.HeaderPosition.top**

Headers appear above their items. This is the default value.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

CellSpanningLayout