Toolbar component that can be used with navigation. Left, center and right containers can be specified by class names. This component will automatically display as a Material Design toolbar when running on Android devices.
ons-page
elementPlease refer to ons-page element Reference for more details.
For additional resources, please also see Guide for Angular 2+.
Name | Type | Description |
---|---|---|
inline | Display the toolbar as an inline element. Optional. Works only during initialization. | |
static |
Static toolbars are not animated by ons-navigator when pushing or popping pages. This can be useful to improve performance in some situations.
Optional.
|
|
modifier | The appearance of the toolbar. Optional. |
Name | Description |
---|---|
static |
Static toolbars are not animated by ons-navigator when pushing or popping pages. This can be useful to improve performance in some situations.
|
visible | Whether the toolbar is shown or not. |
Name | Description |
---|---|
material | Material Design toolbar. |
transparent | Transparent toolbar. |
cover-content |
Displays the toolbar on top of the page’s content. Should be combined with transparent modifier.
|
noshadow | Toolbar without shadow. |
Signature | Description |
---|---|
setVisibility(visible) | Shows the toolbar if visible is true, otherwise hides it. |
show() | Show the toolbar. |
hide() | Hide the toolbar. |
Shows the toolbar if visible is true, otherwise hides it.
Name | Type | Description |
---|---|---|
visible | Boolean | Set to true to show the toolbar, false to hide it |
Show the toolbar.
Hide the toolbar.
If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.
For bug reports and feature requests use our GitHub Issues page.