onbeforeopen event

ToolBar.onbeforeopen event

Applies to Windows and Windows Phone

Occurs immediately before the ToolBar is opened.

Learn about events with Quickstart: adding HTML controls and handling events.

Syntax


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


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


Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

eventInfo

Type: CustomEvent

An object that contains information about the event.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

ToolBar

 

 

Show:
© 2017 Microsoft