Compartir a través de


ListView.swipeBehavior property

[ListView.swipeBehavior property is no longer available for use as of Windows Library for JavaScript (WinJS) 4.0 Preview. Instead, we recommend you follow design guidance on selection scenarios.]

Gets or sets how the ListView 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.ListView" 
    data-win-options="{ swipeBehavior : value}">
</div>
var swipeBehavior = listView.swipeBehavior;
listView.swipeBehavior = swipeBehavior;

Property value

Type: WinJS.UI.SwipeBehavior**

One of the values defined by the SwipeBehavior enumeration.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ListView

HTML ListView customizing interactivity sample (Windows)

How to change the selection mode (HTML)