ItemContainer.swipeBehavior property

Gets or sets how the ItemContainer reacts to the swipe gesture. The swipe gesture can select the swiped items or can have no effect on the current selection.

Syntax

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

Property value

Type: WinJS.UI.SwipeBehavior**

One of the values defined by the WinJS.UI.SwipeBehavior enumeration. The default value is SwipeBehavior.select.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ItemContainer