MenuManager

interface MenuManager : KtfxManager<Menu>

Container of Menu.

See also

MenuBar

Functions

Link copied to clipboard
abstract fun <C : Menu> addChild(child: C): C

Allows child to be added dynamically with Kotlin DSL in the context of this manager.

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
fun MenuManager.menu(text: String = "", graphic: Node? = null): Menu

Add a Menu to this manager.

inline fun MenuManager.menu(text: String = "", graphic: Node? = null, configuration: KtfxMenu.() -> Unit): Menu

Add a Menu with configuration block to this manager.

Link copied to clipboard
fun MenuManager.styledMenu(text: String = "", graphic: Node? = null, vararg styleClass: String, id: String? = null): Menu

Add a styled Menu to this manager.

inline fun MenuManager.styledMenu(text: String = "", graphic: Node? = null, vararg styleClass: String, id: String? = null, configuration: KtfxMenu.() -> Unit): Menu

Add a styled Menu with configuration block to this manager.