Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Occurs immediately before the ToolBar is closed.
Learn about events with Quickstart: adding HTML controls and handling events.
Syntax
<div data-win-control="WinJS.UI.ToolBar" data-win-options="{onbeforeclose : handler}" />
function handler(eventInfo) { /* Your code */ }
// addEventListener syntax
toolBar.addEventListener("beforeclose", handler);
toolBar.removeEventListener("beforeclose", handler);
Event information
Synchronous | No |
Bubbles | Yes |
Cancelable | Yes |
Event handler parameters
eventInfo
Type: CustomEvent**An object that contains information about the event.
Requirements
Minimum WinJS version |
WinJS 4.0 |
Namespace |
WinJS.UI |