RootAppMenuMixin
Auto-generated @jbrowse/mobx-state-tree API for the current JBrowse release — see pluggable elements for concepts. Built into JBrowse core. View source.
Volatiles
| Member | Description |
|---|---|
mutableMenuActions: [] as MenuAction[] |
Actions
| Member | Description |
|---|---|
(newMenus: MenuDefinition[]) => void | Replace the menu bar wholesale. Item contributions recorded before this one are dropped along with the menus they targeted, so a plugin adding to the existing bar wants appendToMenu instead. |
(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
- Guide: Menus