Dela via


ListView.onitemdragenter event

Raised when an dragged item enters the bounds of the ListView control.

Syntax

<div 
    data-win-control="WinJS.UI.ListView" 
    data-win-options="{onitemdragenter : handler}">
</div>
function handler(eventInfo) { /* Your code */ }
 
// addEventListener syntax
listView.addEventListener("itemdragenter", handler);
listView.removeEventListener("itemdragenter", handler);

Event information

Synchronous No
Bubbles Yes
Cancelable Yes

 

Event handler parameters

  • eventInfo
    Type: CustomEvent**

    An object that contains information about the event. The detail property of this object contains the following sub-properties:

Property Meaning
detail.dataTransfer

A JavaScript object that contains the data being transferred.

 

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ListView

detail