Button Element
data class ButtonElement(val text: String, val onClick: () -> Unit, val onContextClick: () -> Unit? = null, val sentiment: Sentiment = Sentiment.Nominal, val enabled: Boolean = true, val latchOnPress: Boolean = false, val leadingSymbol: Symbol? = null, val trailingSymbol: Symbol? = null) : UiElement.Interactive
A clickable button not a part of a block of text.
Constructors
Properties
Link copied to clipboard
Whether to disable the button temporarily after pressing.
Link copied to clipboard
Symbol displayed at the start of the button.
Link copied to clipboard
Action to be invoked when the button has an alternate click.
Link copied to clipboard
Symbol displayed at the end of the button.