Menu

open external class Menu : Menu(source)

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var items: <Error class: unknown class><MenuItem>

A MenuItem[] array containing the menu's items.

Link copied to clipboard
val menuWillCloseEvent: <Error class: unknown class><<Error class: unknown class><Event<*>>>
Link copied to clipboard
val menuWillShowEvent: <Error class: unknown class><<Error class: unknown class><Event<*>>>

Functions

Link copied to clipboard
fun append(menuItem: MenuItem)

Appends the menuItem to the menu.

Link copied to clipboard
fun closePopup(browserWindow: BrowserWindow = definedExternally)

Closes the context menu in the browserWindow.

Link copied to clipboard

the item with the specified id

Link copied to clipboard
fun insert(pos: Double, menuItem: MenuItem)

Inserts the menuItem to the pos position of the menu.

Link copied to clipboard
fun popup(options: PopupOptions = definedExternally)

Pops up this menu as a context menu in the BrowserWindow.