ItemContainer.oninvoked event

Applies to Windows and Windows Phone

Raised when the item is invoked. (You can use the tapBehavior property to specify whether taps and clicks invoke the item.)

Syntax


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


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


Event information

SynchronousNo
BubblesYes
CancelableNo

 

Event handler parameters

eventInfo

Type: CustomEvent

An object that contains information about the event.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Winjs.js

See also

ItemContainer
tapBehavior

 

 

Show:
© 2015 Microsoft