addEventListener method

ToolBar.addEventListener method

Applies to Windows only

Adds an event listener to the ToolBar.

Syntax


toolBar.addEventListener(type, listener, useCapture);

Parameters

type

Type: string

The name (type) of the event that the event listener is registered for.

listener

Type: string

The listener or event handler function to invoke when the event gets raised.

useCapture

Type: boolean

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

Return value

This method does not return a value.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

ToolBar

 

 

Show:
© 2017 Microsoft