Dialog Button Bar Action
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.
on Click
Invoked when the button is clicked.