menuItem

fun MenuItemManager.menuItem(text: String? = null, graphic: Node? = null): MenuItem

Add a MenuItem to this manager.

Return

the control added.


inline fun menuItem(text: String? = null, graphic: Node? = null, configuration: MenuItem.() -> Unit): MenuItem

Create a MenuItem with configuration block.

Return

the control created.

Parameters

configuration

the configuration block.


inline fun MenuItemManager.menuItem(text: String? = null, graphic: Node? = null, configuration: MenuItem.() -> Unit): MenuItem

Add a MenuItem with configuration block to this manager.

Return

the control added.

Parameters

configuration

the configuration block.