Menu

open external class Menu : EventEmitter(source)

Inheritors

Constructors

Link copied to clipboard
constructor()

Menu

Types

Link copied to clipboard
external object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
external fun addListener(type: EventType, listener: EventListener)
Link copied to clipboard
external fun append(menuItem: MenuItem)

Appends the menuItem to the menu.

Link copied to clipboard
external fun closePopup(window: BaseWindow = definedExternally)

Closes the context menu in the window.

Link copied to clipboard
external fun emit(type: EventType, vararg args: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
external fun getMaxListeners(): Double
Link copied to clipboard
external fun getMenuItemById(id: String): MenuItem?

the item with the specified id

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

Inserts the menuItem to the pos position of the menu.

Link copied to clipboard
external fun listenerCount(type: EventType, listener: EventListener): Double
Link copied to clipboard
Link copied to clipboard
external fun off(type: EventType, listener: EventListener)
Link copied to clipboard
external fun on(type: EventType, listener: EventListener)
Link copied to clipboard
external fun once(type: EventType, listener: EventListener)
Link copied to clipboard
external fun popup(options: PopupOptions = definedExternally)

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

Link copied to clipboard
external fun prependListener(type: EventType, listener: EventListener)
Link copied to clipboard
external fun prependOnceListener(type: EventType, listener: EventListener)
Link copied to clipboard
Link copied to clipboard
external fun removeAllListeners(type: EventType)
Link copied to clipboard
external fun removeListener(type: EventType, listener: EventListener)
Link copied to clipboard
external fun setMaxListeners(n: Number)