Skip to content

ElectronMenu.getMenuItemById method

ElectronMenu › getMenuItemById

Unofficial

Returns the item with the specified id.

Signature:

getMenuItemById(id: string): ElectronMenuItem | null

Parameters:

Parameter Type Description
id string The id of the menu item.

Returns: ElectronMenuItem | nullThe matching menu item, or null if not found.