Skip to content

Latest commit

 

History

History
147 lines (82 loc) · 2.97 KB

_menubar_.menubar.md

File metadata and controls

147 lines (82 loc) · 2.97 KB

menubar

Globals / "Menubar" / Menubar /

Class: Menubar

Hierarchy

  • EventEmitter

    • Menubar

Index

Constructors

Accessors

Methods

Constructors

constructor

+ new Menubar(app: App, options?: Partial<Options>): Menubar

Defined in Menubar.ts:24

Parameters:

Name Type
app App
options? Partial<Options>

Returns: Menubar

Accessors

app

app:

Defined in Menubar.ts:47


positioner

positioner:

Defined in Menubar.ts:56


tray

tray:

Defined in Menubar.ts:69


window

window:

Defined in Menubar.ts:83

Methods

getOption

getOption<K>(key: K): Options[K]

Defined in Menubar.ts:92

Type parameters:

K: keyof Options

Parameters:

Name Type Description
key K The option key to retrieve, see Options.

Returns: Options[K]


hideWindow

hideWindow(): void

Defined in Menubar.ts:99

Returns: void


setOption

setOption<K>(key: K, value: Options[K]): void

Defined in Menubar.ts:115

Type parameters:

K: keyof Options

Parameters:

Name Type Description
key K The option key to modify, see Options.
value Options[K] The value to set.

Returns: void


showWindow

showWindow(trayPos?: Electron.Rectangle): Promise<void>

Defined in Menubar.ts:124

Parameters:

Name Type Description
trayPos? Electron.Rectangle The bounds to show the window in.

Returns: Promise<void>