action

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

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

Parameters

title

of the item

icon

of the item

fired

invoked when this item is triggered