PromptAction

data class PromptAction(val label: String, val action: () -> Unit)(source)

Data class used for Prompt primaryAction & secondaryAction

Constructors

Link copied to clipboard
constructor(label: String, action: () -> Unit)

Properties

Link copied to clipboard
val action: () -> Unit

callback to be invoked when the button is being clicked.

Link copied to clipboard

string that contains the text for the button.