ElectronMenu.getMenuItemById method
ElectronMenu › getMenuItemById
Unofficial
Returns the item with the specifiedid. Signature:
getMenuItemById(id: string): ElectronMenuItem | nullParameters:
| Parameter | Type | Description |
|---|---|---|
| id | string | The id of the menu item. |
Returns: ElectronMenuItem | null — The matching menu item, or null if not found.