QueryCollection.listen method

Applies to Windows and Windows Phone

Registers the listener for the specified event on all the elements in the collection.

Syntax


queryCollection.listen(eventType, listener, capture);

Parameters

eventType

Type: string

The name of the event.

listener

Type: function

The event handler function to be called when the event occurs.

capture

Type: Boolean

true if capture == true is to be passed to addEventListener; otherwise, false.

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]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Utilities

Library

Winjs.js

See also

QueryCollection

 

 

Show:
© 2015 Microsoft