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 WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

GridLayout

 

 

Show: