addButtonInRow
fun addButtonInRow(text: String, key: KeyCharAndCode? = null, action: () -> Unit): Cell<TextButton>
Content copied to clipboard
Adds an inline TextButton.
Return
The new Cell
Parameters
text
The button's caption.
key
Associate a key with this button's action.
action
A lambda to be executed when the button is clicked.
fun addButtonInRow(text: String, key: Char, action: () -> Unit): Cell<TextButton>
Content copied to clipboard
fun addButtonInRow(text: String, key: Int, action: () -> Unit): Cell<TextButton>
Content copied to clipboard