Fab

open class Fab(icon: String? = null, floatPosition: FloatPosition? = null, content: String? = null, rich: Boolean = false, className: String? = null, init: Fab.() -> Unit? = null)

An Onsen UI fab component.

Parameters

icon

the name of the icon placed on the button

floatPosition

a position of the button

content

the content the button.

rich

whether content can contain HTML code

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(icon: String? = null, floatPosition: FloatPosition? = null, content: String? = null, rich: Boolean = false, className: String? = null, init: Fab.() -> Unit? = null)

Creates a floating action button component.

Properties

Link copied to clipboard

Whether the button is disabled.

Link copied to clipboard

A position of the floating button.

Link copied to clipboard
var icon: String?

The name of the icon placed on the button.

Link copied to clipboard

A dynamic property returning whether the button is visible.

Link copied to clipboard

A modifier attribute to specify custom styles.

Link copied to clipboard

Whether the button will have a ripple effect when tapped.

Functions

Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun childrenVNodes(): Array<<Error class: unknown class>>
Link copied to clipboard
open fun dispose()
Link copied to clipboard
open fun hideFab()

Hides the button.

Link copied to clipboard
open fun onClick(handler: Fab.(<Error class: unknown class>) -> Unit): Int

A convenient helper for easy setting onClick event handler.

Link copied to clipboard
open fun showFab()

Shows the button.

Link copied to clipboard
open fun toggleFab()

Toggles the visibility of the button.