Partager via


GridLayout.orientation property

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