swipeOrientation property

ItemContainer.swipeOrientation property

Applies to Windows and Windows Phone

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.

ValueCondition
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

 

 

Show:
© 2017 Microsoft