onselectionchanged event

ItemContainer.onselectionchanged event

Applies to Windows and Windows Phone

Raised after the item is selected or deselected.

Syntax


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


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


Event information

SynchronousNo
BubblesYes
CancelableNo

 

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