addCloseButton
fun addCloseButton(text: String = Constants.close, additionalKey: KeyCharAndCode? = null, action: () -> Unit? = null): Cell<TextButton>
Content copied to clipboard
Adds a TextButton that closes the popup, with BACK already mapped.
Return
The new Cell, marked as end of row.
Parameters
text
The button's caption, defaults to "Close".
additionalKey
An additional key that should act like a click.
action
A lambda to be executed after closing the popup when the button is clicked.
Sources
jvm source
Link copied to clipboard