Plain

data class Plain(val text: String, val style: KalugaButtonStyle.WithText<*>, val isEnabled: Boolean = true, val action: () -> Unit) : KalugaButton.WithText

A KalugaButton.WithText that displays a regular text

Parameters

style

the KalugaButtonStyle.WithText of the button

isEnabled

if true the button can be interacted with

action

function to execute when the button is pressed

Constructors

Link copied to clipboard
constructor(text: String, style: KalugaButtonStyle.WithText<*>, isEnabled: Boolean = true, action: () -> Unit)

Properties

Link copied to clipboard
open override val action: () -> Unit
Link copied to clipboard
open override val isEnabled: Boolean
Link copied to clipboard
open override val style: KalugaButtonStyle.WithText<*>
Link copied to clipboard

the text to display on the button