ItemContainer.swipeOrientation property

Gets or sets the orientation of swipe gestures.

Syntax

<div 
    data-win-control="WinJS.UI.ItemContainer" 
    data-win-options="{ swipeOrientation : value}" >
</div>
var swipeOrientation = itemContainer.swipeOrientation;
itemContainer.swipeOrientation = swipeOrientation;

Property value

Type: ****

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

Value Condition
WinJS.UI.Orientation.horizontal

Swipe gestures are performed horizontally.

WinJS.UI.Orientation.vertical

Swipe gestures are performed vertically.

 

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ItemContainer