JBrowseReactAppRootModel
Auto-generated from the @jbrowse/mobx-state-tree model in the source — see the developer guide for concepts. View source.
Holds the top-level state of the embeddable JBrowse React app: the loaded config, the session, internet accounts and the app menus.
Many properties of the root model are available through the session, and
we generally prefer using the session model (via e.g. getSession) over the
root model (via e.g. getRoot) in plugin code.
Each section ends with the members a composed model contributes, linked to the page that documents them.
Properties
5 inherited properties from 2 models
From BaseRootModel: jbrowse, session, sessionPath, assemblyManager
Volatiles
| Member | Description |
|---|---|
versionstring | |
pluginsUpdatedboolean | |
pluginsUpdatedCallback((args: PluginsUpdate) => void) | undefined | host hook for PluginsUpdated, set from createViewState's onPluginsUpdated. Undefined means the host didn't ask to handle it. |
6 inherited volatiles from 2 models
From BaseRootModel: rpcManager, adminMode, error, textSearchManager, pluginManager
From RootAppMenuMixin:
Methods
| Member | Description |
|---|---|
() => Menu[] |
Actions
| Member | Description |
|---|---|
setPluginsUpdated() => void | |
setPluginsUpdatedCallback(callback: (args: PluginsUpdate) => void) => void |
14 inherited actions from 3 models
From BaseRootModel: setError, setSession, setDefaultSession, setSessionPath, renameCurrentSession
From InternetAccountsMixin: initializeInternetAccount, createEphemeralInternetAccount, findAppropriateInternetAccount
From RootAppMenuMixin: , , , , ,