Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GridLayout.orientation property

Applies to Windows and Windows Phone

Gets or sets the orientation of the GridLayout.

Syntax


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


var orientation = gridLayout.orientation;
gridLayout.orientation = orientation;

Property value

Type: WinJS.UI.Orientation

One of the values defined by the WinJS.UI.Orientation enumeration. The default value is Orientation.horizontal.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Ui.js

See also

GridLayout

 

 

Show:
© 2014 Microsoft. All rights reserved.