MenuCreationContext

DSL for configuring Menus.

See also

Functions

Link copied to clipboard
abstract fun action(title: String, icon: Icon<MenuBehavior.ItemInfo>? = null, fired: (MenuItem) -> Unit): MenuItem

Adds an action item to the menu that will invoke fired when it is triggered.

Link copied to clipboard
abstract fun menu(title: String, context: MenuCreationContext.() -> Unit): MenuItem

Adds an item to the menu that will show a child menu.

Link copied to clipboard
abstract fun prompt(title: String, icon: Icon<MenuBehavior.ItemInfo>? = null, fired: (MenuItem) -> Unit): MenuItem

Adds an item to the menu that will invoke fired when it is triggered. These items should be used when the user will be prompted before taking any action.

Link copied to clipboard
abstract fun separator()

Adds a separator to the menu.