fix(docs): fix user-interface.mdx (#2700)
### Change Type - [x] `documentation` — Changes to the documentation only ### Release Notes Add `newMenuItem` creation in "Toolbar and Menus" example Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
This commit is contained in:
parent
3b286e10c4
commit
b76d7b3db1
1 changed files with 1 additions and 0 deletions
|
@ -122,6 +122,7 @@ const myOverrides: TLUiOverrides = {
|
|||
return actions
|
||||
},
|
||||
contextMenu(editor, contextMenu, { actions }) {
|
||||
const newMenuItem = menuItem(actions['my-new-action'])
|
||||
const newMenuGroup = menuGroup('my-items', newMenuItem)
|
||||
contextMenu.unshift(newMenuItem)
|
||||
return contextMenu
|
||||
|
|
Loading…
Reference in a new issue