Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |