kvision / pl.treksoft.kvision.electron / Menu

Menu

(js) open class Menu

Constructors

(js)

<init>

Menu()

Properties

(js)

items

open var items: Array<MenuItem>

Functions

(js)

addListener

open fun addListener(event: String, listener: (event: Event) -> Unit): Menu
(js)

append

open fun append(menuItem: MenuItem): Unit
(js)

closePopup

open fun closePopup(browserWindow: BrowserWindow? = definedExternally): Unit
(js)

getMenuItemById

open fun getMenuItemById(id: String): MenuItem
(js)

insert

open fun insert(pos: Number, menuItem: MenuItem): Unit
(js)

on

open fun on(event: String, listener: (event: Event) -> Unit): Menu
(js)

once

open fun once(event: String, listener: (event: Event) -> Unit): Menu
(js)

popup

open fun popup(options: PopupOptions): Unit
(js)

removeListener

open fun removeListener(event: String, listener: (event: Event) -> Unit): Menu

Companion Object Functions

(js)

buildFromTemplate

fun buildFromTemplate(template: Array<MenuItemConstructorOptions>): Menu
(js)

getApplicationMenu

fun getApplicationMenu(): Menu?
(js)

sendActionToFirstResponder

fun sendActionToFirstResponder(action: String): Unit
(js)

setApplicationMenu

fun setApplicationMenu(menu: Menu?): Unit