Toolbar

open class Toolbar(label: String? = null, inline: Boolean? = null, static: Boolean? = null, className: String? = null, init: Toolbar.() -> Unit? = null)

A toolbar component.

Parameters

label

a label placed automatically in the center section of the toolbar

inline

display the toolbar as an inline element

static

static toolbars are not animated by ons-navigator when pushing or popping pages

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(label: String? = null, inline: Boolean? = null, static: Boolean? = null, className: String? = null, init: Toolbar.() -> Unit? = null)

Creates a toolbar component.

Properties

Link copied to clipboard
val centerPanel: <Error class: unknown class>

The center section of the toolbar.

Link copied to clipboard

Display the toolbar as an inline element.

Link copied to clipboard
val leftPanel: <Error class: unknown class>

The left section of the toolbar.

Link copied to clipboard

A modifier attribute to specify custom styles.

Link copied to clipboard
val rightPanel: <Error class: unknown class>

The right section of the toolbar.

Link copied to clipboard

Static toolbars are not animated by ons-navigator when pushing or popping pages.

Functions

Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun center(builder: <Error class: unknown class>.() -> Unit)

A DSL builder for the center section of the toolbar.

Link copied to clipboard
open fun dispose()
Link copied to clipboard
open fun hideToolbar()

Hides the toolbar.

Link copied to clipboard
open fun left(builder: <Error class: unknown class>.() -> Unit)

A DSL builder for the left section of the toolbar.

Link copied to clipboard
open fun render(): <Error class: unknown class>
Link copied to clipboard
open fun right(builder: <Error class: unknown class>.() -> Unit)

A DSL builder for the right section of the toolbar.

Link copied to clipboard
open fun setVisibility(visible: Boolean)

Shows or hides the toolbar.

Link copied to clipboard
open fun showToolbar()

Shows the toolbar.