MenuContainer

interface MenuContainer : Container<Menu>

Container of Menu.

See also

MenuBar

Inheritors

Functions

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

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

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

Add a Menu to this container.

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

Add a Menu with configuration block to this container.

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

Add a styled Menu to this container.

inline fun MenuContainer.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 container.