Action

class Action(val text: String, val onClick: () -> Unit = {}, val enabled: Boolean = true, val dangerous: Boolean = false) : WizardStepAction

A button to perform an action.

Constructors

Link copied to clipboard
constructor(text: String, onClick: () -> Unit = {}, enabled: Boolean = true, dangerous: Boolean = false)

Properties

Link copied to clipboard
val dangerous: Boolean = false

Whether the button is dangerous (red), or not (normal).

Link copied to clipboard
val enabled: Boolean = true

Whether the button is enabled.

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

The action to perform when the button is clicked.

Link copied to clipboard

The title.