The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ListView.onitemdragstart event

Raised when the user begins to drag an item from a ListView control.
Syntax
<div data-win-control="WinJS.UI.ListView" data-win-options="{onitemdragstart : handler}"> </div>
function handler(eventInfo) { /* Your code */ } // addEventListener syntax listView.addEventListener("itemdragstart", handler); listView.removeEventListener("itemdragstart", handler);
Event information
| Synchronous | No |
|---|---|
| Bubbles | Yes |
| Cancelable | Yes |
Event handler parameters
- eventInfo
-
Type: CustomEvent
An object that contains info about the event. The detail property of this object contains the following sub-properties:
Property Meaning - detail.dataTransfer
A JavaScript object containing information about the dragged item.
- detail.dragInfo
A JavaScript object containing information about the ListView control.
Requirements
|
Minimum WinJS version |
WinJS 3.0 |
|---|---|
|
Namespace |
WinJS.UI |
See also
Show: