ConfigurationEditorWidget
Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the developer guide for concepts. Provided by the config plugin. View source.
Widget for a config's settings: a short form over the common ones and a JSON editor over all of them. Holds the target configuration and debounce-saves edits back to the session.
Properties
| Member | Description |
|---|---|
idstring · default createElementId() |
The identifier references to this node resolve through. A snapshot that leaves it out gets a generated one. |
type"ConfigurationEditorWidget" |
Always "ConfigurationEditorWidget", the name a snapshot selects this model by. |
trackIdstring | undefined |
the track whose working copy this edits, re-resolved on every read so an undo that replaces the copy moves the editor with it |
Volatiles
| Member | Description |
|---|---|
inlineTargetAnyConfigurationModel | undefined |
|
expandedDisplayIdstring | undefined |
Getters
| Member | Description |
|---|---|
targetAnyConfigurationModel | undefined |
|
baseAnyConfigurationModel | undefined |
the track's config as the session's base holds it (its config.json entry, or the one the session added it with), which a slot's reset returns to; undefined for an inline target |
Actions
| Member | Description |
|---|---|
setTrackId(trackId: string) => void |
edit the working copy of trackId, saving any edit still pending on the previous target first |
setTarget(newTarget: AnyConfigurationModel | undefined) => void |
edit a config node directly, saving any edit still pending on the previous target first |
setExpandedDisplayId(displayId: string | undefined) => void |