ConstAdds an action to the menu structure
Action to add
Optionalpath: stringPath pointing to the location. Use the ID of each level of the menu, or index or group within a level, separated by a point. For example, file.export.0 places the action at the top position of the Export submenu in the File menu.
Add a new menu to the menu bar
The BarMenu to add
Optionalposition: string | numberSpecify the position in the menu list where to add insert the menu. Can either be an index in the list of all menus, or the ID of the menu to insert right from.
Optionalevent: EventPath pointing to the location. Use the ID of each level of the menu, or index or group within a level, or item ID, separated by a point. For example, export.export_special_format removes the action "Export Special Format" from the Export submenu.
Update the menu bar
Deprecated