NavBar.onaftershow event
[onaftershow is no longer available for use as of Windows Library for JavaScript (WinJS) 4.0. Instead, use onafteropen. ]
onaftershow is no longer available. Occurs immediately after the NavBar is displayed.
Learn about events with Quickstart: adding HTML controls and handling events.
Syntax
<div
data-win-control="WinJS.UI.NavBar"
data-win-options="{onaftershow : handler}">
</div>
function handler(eventInfo) { /* Your code */ }
// addEventListener syntax
navBar.addEventListener("aftershow", handler);
navBar.removeEventListener("aftershow", handler);
- or -
navBar.onaftershow = handler;
Event information
Synchronous | No |
Bubbles | Yes |
Cancelable | Yes |
Event handler parameters
eventInfo
Type: EventAn object that contains information about the event.
Requirements
Minimum supported client |
Windows 8.1 [Windows Store apps only] |
Minimum supported server |
Windows Server 2012 R2 [Windows Store apps only] |
Minimum supported phone |
None supported |
End of client support |
Windows 10 Insider Preview |
End of phone support |
None supported |
End of server support |
Windows Server Technical Preview |
Namespace |
WinJS.UI |
Library |
Ui.js |
See also
Your first app - Part 3: PageControl objects and navigation
Navigating between pages (HTML)
Navigation and navigation history sample
Designers
Bottom app bar
Top app bar