Interface ElectronMenuOptions

Representation of possible electron menu options.

interface ElectronMenuOptions {
    context?: HTMLElement;
    contextKeyService?: ContextMatcher;
    honorDisabled?: boolean;
    rootMenuPath: MenuPath;
    showDisabled?: boolean;
}

Properties

context?: HTMLElement

A DOM context to use when evaluating any when clauses of menu items registered for this item.

contextKeyService?: ContextMatcher

A context key service to use when evaluating any when clauses. If none is provided, the global context will be used.

honorDisabled?: boolean

Controls whether to render disabled items as disabled Defaults to true

rootMenuPath: MenuPath

The root menu path for which the menu is being built.

showDisabled?: boolean

Controls whether to render disabled menu items. Defaults to true.