Renaming Main Menu Items #9626
Unanswered
sboudreaux96
asked this question in
Q&A
Replies: 1 comment
-
@sboudreaux96 there is no API as far as I am aware to update an existing menu item (ex: its I was able to get it to work by doing the following: registerMenus(menus: MenuModelRegistry): void {
// Collect existing `File` menu items.
const fileMenus = menus.getMenu(CommonMenus.FILE).children;
// Remove existing `File` menu.
menus.unregisterMenuAction(CommonMenus.FILE.slice(-1)[0]);
// Register updated `File` menu and children.
menus.registerSubmenu(CommonMenus.FILE, 'Custom File');
for (const menu of fileMenus) {
menus.registerMenuNode(CommonMenus.FILE, menu);
}
} custom-file.mp4 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello - I am interested in renaming main menu items (such as: File, Open Workspace, Open Recent Workspace, etc.) and I wanted to know how I could go about finding the location of the labels for these? I know how to hide menu items but am not necessarily sure where to find the labels. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions