We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf62a6d commit 1016ba1Copy full SHA for 1016ba1
api/08-How-To/Menus.md
@@ -178,10 +178,10 @@ To position the menu item before or after any item, use
178
179
```jsx
180
// second parameter is for keyboard shortcut. Empty string means no shortcut.
181
-menu.addMenuItem(MY_COMMAND_ID, "", "before", "file.saveAs");
+menu.addMenuItem(MY_COMMAND_ID, "", Menus.BEFORE, Commands.FILE_SAVE_AS);
182
```
183
184
-- Third parameter must specify “before” or “after” the item should be set.
+- Third parameter must specify `BEFORE` or `AFTER` the item should be set.
185
- Fourth parameter must specify the “relativeID” of the menu item to set the position.
186
187

0 commit comments