onselectionchanging event

ItemContainer.onselectionchanging event

Applies to Windows and Windows Phone

Raised just before the current selection changes.

Syntax


<div 
    data-win-control="WinJS.UI.ItemContainer" 
    data-win-options="{onselectionchanging : handler}">
</div>


function handler(eventInfo) { /* Your code */ }
 
// addEventListener syntax
itemContainer.addEventListener("selectionchanging", handler);
itemContainer.removeEventListener("selectionchanging", handler);


Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

eventInfo

Type: CustomEvent

An object that contains information about the event.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ItemContainer

 

 

Show:
© 2017 Microsoft