ListView.onitemdragbetween event
Raised when the ListView is a drop target and the onitemdragenter has been disabled. This is raised every time the cursor is moved between a new pair of items. If you call preventDefault on this event, then the ListView doesn't move the items slightly above/below the cursor to provide visual feedback for a drop.
Syntax
<div
data-win-control="WinJS.UI.ListView"
data-win-options="{onitemdragbetween : handler}">
</div>
function handler(eventInfo) { /* Your code */ }
// addEventListener syntax
listView.addEventListener("itemdragbetween", handler);
listView.removeEventListener("itemdragbetween", 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 additional info about the event.
Requirements
Minimum WinJS version |
WinJS 3.0 |
Namespace |
WinJS.UI |