Menu

open external class Menu : <ERROR CLASS> ERROR CLASS: Symbol not found for NodeEventEmitter(source)

Inheritors

Constructors

Link copied to clipboard
constructor()

Menu

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var items: ERROR CLASS: Symbol not found for js.array.ReadonlyArray<electron/core/MenuItem>

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

Link copied to clipboard
val menuWillCloseEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<electron/core/Event<*>>>
Link copied to clipboard
val menuWillShowEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<electron/core/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.