kvision / pl.treksoft.kvision.electron / MenuItemConstructorOptions

MenuItemConstructorOptions

external interface MenuItemConstructorOptions

Properties

accelerator

open var accelerator: Accelerator?

checked

open var checked: Boolean?

click

open var click: ((menuItem: MenuItem, browserWindow: BrowserWindow, event: Event) -> Unit)?

enabled

open var enabled: Boolean?

icon

open var icon: dynamic

id

open var id: String?

label

open var label: String?

position

open var position: String?

role

open var role: String?

sublabel

open var sublabel: String?

submenu

open var submenu: dynamic

type

open var type: dynamic

visible

open var visible: Boolean?

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.