ButtonConfiguration

data class ButtonConfiguration(var visible: Boolean = true, var text: String = "", var accessibilityDescription: String = "", var background: BackgroundStyle = BackgroundStyle( ), var foreground: ForegroundStyle = ForegroundStyle( ))

Button configuration.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JsonObject)
constructor(visible: Boolean = true, text: String = "", accessibilityDescription: String = "", background: BackgroundStyle = BackgroundStyle( ), foreground: ForegroundStyle = ForegroundStyle( ))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The text to be read when button is selected through accessibility mode. Default is ""

Link copied to clipboard

The style of the button's background.

Link copied to clipboard

The style of the button's foreground (icon, text).

Link copied to clipboard

The text to be displayed on the button. Default is ""

Link copied to clipboard

Whether the button is visible or not. Default is true

Functions

Link copied to clipboard
fun toJson(): JsonObject