ToolbarButton

open class ToolbarButton(content: String? = null, rich: Boolean = false, align: <Error class: unknown class>? = null, icon: String? = null, disabled: Boolean? = null, className: String? = null, init: ToolbarButton.() -> Unit? = null)

A button component designed to be placed inside the toolbar.

Parameters

content

the content of the button.

rich

whether content can contain HTML code

align

text align

icon

an icon placed on the toolbar button

disabled

specify if the button should be disabled

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(content: String? = null, rich: Boolean = false, align: <Error class: unknown class>? = null, icon: String? = null, disabled: Boolean? = null, className: String? = null, init: ToolbarButton.() -> Unit? = null)

Creates a toolbar button component.

Properties

Link copied to clipboard

Specify if the button should be disabled.

Link copied to clipboard
var icon: String?

The icon placed on the toolbar button.

Link copied to clipboard

A dynamic property returning current state of the component.

Link copied to clipboard

A modifier attribute to specify custom styles.

Functions

Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun onClick(handler: ToolbarButton.(<Error class: unknown class>) -> Unit): Int

A convenient helper for easy setting onClick event handler.