ListLayout.groupHeaderPosition property

Applies to Windows and Windows Phone

Gets or sets the position of group headers.

Syntax


<div 
    data-win-control="WinJS.UI.ListView"
    data-win-options="{layout: {type: WinJS.UI.ListLayout, groupHeaderPosition: 'value'}}">
</div>


var groupHeaderPosition = listLayout.groupHeaderPosition;
listLayout.groupHeaderPosition = groupHeaderPosition;

Property value

Type: WinJS.UI.HeaderPosition

A WinJS.UI.HeaderPosition value that specifies the position of the group header relative to the items in the group. 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 supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Ui.js

See also

ListLayout

 

 

Show:
© 2014 Microsoft