fun Menu.menuitem(: String, : String, : Node? = null, : () -> Unit = {}): <ERROR CLASS>
fun Menu.menuitem(: String, : KeyCombination? = null, : Node? = null, : (ActionEvent) -> Unit = {}): <ERROR CLASS>
Create a MenuItem. The op block will be configured as the setOnAction
. This will be deprecated in favor of the item
call, where the
op block operates on the MenuItem. This deprecation was made to align the menuitem builder with the other builders.