getMenuButton

private fun getMenuButton(text: String, icon: String, key: Char? = null, keyVisualOnly: Boolean = false, function: () -> Unit): Table

Create one Main Menu Button including onClick/key binding

Parameters

text

The text to display on the button

icon

The path of the icon to display on the button

key

Optional key binding (limited to Char subset of KeyCharAndCode, which is OK for the main menu)

function

Action to invoke when the button is activated

Sources

jvm source
Link copied to clipboard