onitemdragenter event
Collapse the table of content
Expand the table of content

ListView.onitemdragenter event

Applies to Windows only

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

SynchronousNo
BubblesYes
CancelableYes

 

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:

PropertyMeaning
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

 

 

Show:
© 2017 Microsoft