open class Menu
(js)
<init> |
Menu() |
(js)
items |
open var items: Array<MenuItem> |
(js)
addListener |
open fun addListener(event: String, listener: (event: Event) -> Unit): Menu |
(js)
append |
open fun append(: 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): 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 |
(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?): Unit |