Displays navigation commands in a toolbar that the user can show or hide.
Creates a new NavBar.
The DOM element that will host the new NavBar.
An object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties or events.
This API supports the WinJS infrastructure and is not intended to be used directly from your code.
Gets or sets a value that indicates whether the NavBar is disabled.
Gets the HTML element that hosts this NavBar.
Gets a value that indicates whether the NavBar is hidden or in the process of becoming hidden.
This API supports the WinJS infrastructure and is not intended to be used directly from your code.
Gets or sets a value that specifies whether the NavBar appears at the top or bottom of the main view.
Gets or sets a value that indicates whether the NavBar is sticky (won't light dismiss). If not sticky, the NavBar dismisses normally when the user touches outside of the NavBar.
Registers an event handler for the specified event.
The name of the event to handle. Note that you drop the "on" when specifying the event name. For example, instead of specifying "onclick", you specify "click".
The event handler function to associate with the event.
Set to true to register the event handler for the capturing phase; otherwise, set to false to register the event handler for the bubbling phase.
Raises an event of the specified type and with additional properties.
The type (name) of the event.
The set of additional properties to be attached to the event object when the event is raised.
boolean
true if preventDefault was called on the event, otherwise false.
Releases resources held by this NavBar. Call this method when the NavBar is no longer needed. After calling this method, the NavBar becomes unusable.
Hides the NavBar.
Hides the specified commands of the NavBar.
The commands to hide. The array elements may be NavBarCommand objects, or the string identifiers (IDs) of commands.
The parameter immediate is not supported and may be altered or unavailable in the future. true to hide the commands immediately, without animating them; otherwise, false.
Occurs immediately after the NavBar is hidden.
An object that contains information about the event.
Raised after the NavBar is shown.
An object that contains information about the event.
Raised just before the NavBar is hidden.
An object that contains information about the event.
Occurs before a hidden NavBar is shown.
An object that contains information about the event.
Occurs after the NavBar has finished processing its child elements.
An object that contains information about the event.
Removes an event handler that the addEventListener method registered.
The name of the event that the event handler is registered for.
The event handler function to remove.
Set to true to remove the capturing phase event handler; set to false to remove the bubbling phase event handler.
Shows the NavBar if it is not disabled.
Shows the specified commands of the NavBar.
The commands to show. The array elements may be NavBarCommand objects, or the string identifiers (IDs) of commands.
The parameter immediate is not supported and may be altered or unavailable in the future. true to show the commands immediately, without animating them; otherwise, false.
Shows the specified commands of the NavBar while hiding all other commands.
The commands to show. The array elements may be NavBarCommand objects, or the string identifiers (IDs) of commands.
The parameter immediate is not supported and may be altered or unavailable in the future. true to show the specified commands (and hide the others) immediately, without animating them; otherwise, false.