onShowing

fun onShowing(handlerCombination: HandlerCombination = HandlerCombination.AFTER, block: (event: ActionEvent) -> Unit)

Add an event handler which is performed after the button is clicked, but before the popup menu is built.

Use this to update items 'just-in-time'.