RootAppMenuMixin
Auto-generated from the @jbrowse/mobx-state-tree model in the source — see the developer guide for concepts. Built into JBrowse core. View source.
Adds actions to the root model that let plugins add menus and menu items to the app bar.
Volatiles
| Member | Description |
|---|---|
MenuAction[] |
Actions
| Member | Description |
|---|---|
(menuName: string) => void | Add a top-level menu, if the app bar does not already have one with this name. |
(menuName: string, position: number) => void | Insert a top-level menu, if the app bar does not already have one with this name. |
(menuName: string, menuItem: MenuItem) => void | Add a menu item to a top-level menu, creating the menu if it does not exist. |
(menuName: string, menuItem: MenuItem, position: number) => void | Insert a menu item into a top-level menu, creating the menu if it does not exist. |
(menuPath: string[], menuItem: MenuItem) => void | Add a menu item to a sub-menu, creating any part of the path that does not exist. |
| Insert a menu item into a sub-menu, creating any part of the path that does not exist. |
Related links
- Developer guide: Menus