DialogButtonBarAction

data class DialogButtonBarAction(val text: String, val enabled: Boolean = true, val onClick: () -> Unit)

A single action in a DialogButtonBar, addressed by role rather than position because COUIButtonBarLayout.resortButton reorders the buttons when the bar stacks.

Parameters

text

The button label.

enabled

Whether the button is enabled.

onClick

Invoked when the button is clicked.

Constructors

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

Properties

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