Represents an application toolbar for displaying commands.
Creates a new AppBar object.
The DOM element that will host the control.
The set of properties and values to apply to the new AppBar.
Sets the AppBarCommand objects that appear in the app bar.
Gets or sets a value that indicates whether the AppBar is disabled.
Gets the DOM element that hosts the AppBar.
Gets a value that indicates whether the AppBar is hidden or in the process of becoming hidden.
Gets or sets the layout of the app bar contents.
Gets or sets a value that specifies whether the AppBar appears at the top or bottom of the main view.
Gets or sets a value that indicates whether the AppBar is sticky (won't light dismiss). If not sticky, the app bar dismisses normally when the user touches outside of the appbar.
Registers an event handler for the specified event.
The event type to register. It must be beforeshow, beforehide, aftershow, or afterhide.
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 AppBar. Call this method when the AppBar is no longer needed. After calling this method, the AppBar becomes unusable.
Returns the AppBarCommand object identified by id.
The element idenitifier (ID) of the command to be returned.
The command identified by id. If multiple commands have the same ID, returns an array of all the commands matching the ID.
Hides the AppBar.
Hides the specified commands of the AppBar.
The commands to hide. The array elements may be AppBarCommand 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 AppBar is hidden.
An object that contains information about the event.
Occurs after the AppBar is shown.
An object that contains information about the event.
Occurs before the AppBar is hidden.
An object that contains information about the event.
Occurs before a hidden AppBar is shown.
An object that contains information about the event.
Removes an event handler that the addEventListener method registered.
The event type to unregister. It must be beforeshow, beforehide, aftershow, or afterhide.
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 AppBar if it is not disabled.
Shows the specified commands of the AppBar.
The commands to show. The array elements may be AppBarCommand 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 AppBar while hiding all other commands.
The commands to show. The array elements may be AppBarCommand 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.