Show TOC

Toolbar namespaceLocate this document in the navigation structure

The toolbar plugin allows an application to create a native toolbar using JavaScript.

On Android, a double tap gesture is used to display/hide the toolbar. On iOS, A long press with 2 fingers will display the toolbar.

Members
Name Description
SHOW_AS_ACTION_ALWAYS Always show this item as a button in an Action Bar.
SHOW_AS_ACTION_IF_ROOM Show this item as a button in an Action Bar if the system decides there is room for it.
SHOW_AS_ACTION_NEVER Never show this item as a button in an Action Bar.
SHOW_AS_ACTION_WITH_TEXT When this item is in the action bar, always show it with a text label even if it also has an icon specified.
Methods
Name Description
addItem( item, item.label, item.icon, item.showAsAction, callback ) Adds an item to the toolbar.
clear( callback ) Clears all the items from the toolbar.