ListView.addEventListener method

0 out of 2 rated this helpful - Rate this topic

Registers an event handler for the specified event.

Syntax


listView.addEventListener(eventName, eventHandler, useCapture);

Parameters

eventName

Type: String

The name of the event to handle. See the ListView object page for a list of events. Note that you drop the "on" when specifying the event name for the addEventListener method. For example, instead of specifying "onselectionchange", you specify "selectionchange".

eventHandler

Type: Function

The event handler function to associate with the event.

useCapture

Type: Boolean

Set to true to register the event handler for the capturing phase; otherwise, set to false to register the event handler for the bubbling phase.

Return value

This method does not return a value.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

WinJS.UI

Library

Ui.js

See also

ListView

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.