ControlAction

class ControlAction<T>(val executeOnInit: Boolean = false, val action: suspend ActionContext<T>.() -> Unit)

Defines an action to run after a control's value changes.

Parameters

action

Lambda to run. Gets ActionContext as its receiver (this).

Type Parameters

T

type of the value of the control that triggers the action.

Constructors

Link copied to clipboard
constructor(executeOnInit: Boolean = false, action: suspend ActionContext<T>.() -> Unit)

Properties

Link copied to clipboard
val action: suspend ActionContext<T>.() -> Unit
Link copied to clipboard