Share via


ItemContainer.onselectionchanging event

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

Synchronous No
Bubbles Yes
Cancelable Yes

 

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