addAction

infix fun <T : ButtonBase> T.addAction(eventHandler: EventHandler<ActionEvent>): T

Infix convenience function to add an onAction EventHandler to a Button

Parameters

eventHandler

The EventHandler for the onAction event