JBrowseReactLinearGenomeViewRootModel
Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the developer guide for concepts. View source.
Composes the shared EmbeddedRootModel with a LinearGenomeView session and this product's own props.
Properties
| Member | Description |
|---|---|
disableAddTracksboolean · default false |
|
boolean · default false |
Draw the app-shaped File menu bar above the view. Off by default: an embed is the chrome a host asked for, and this is a component that has never had an application's bar. |
heightstring | undefined |
Any CSS height, applied to the component's own root whether or not a drawer is open. Absent, the component is content-height and grows with the page, and the host's box bounds it. |
drawerViewHeightstring · default '100vh' |
Superseded by height, which does the same thing without the "only while a drawer is open" condition. Still honored when height is absent. |
Getters
| Member | Description |
|---|---|
effectiveHeightstring | undefined |
The height in force: height when a host gave one, drawerViewHeight while a drawer is open, and nothing otherwise -- the view is content-height and the host's own box bounds it. The session's stickyViewHeaders reads it too. |
Methods
| Member | Description |
|---|---|
() => { label: string; menuItems: MenuItem[]; }[] |
One File menu, and only the two items an embed can honour: it can open a track or a connection into the session it was handed. The full app's File menu also starts, imports and exports sessions, which here would let a reader discard the view its host configured with no route back -- and Add/Tools have no items when there is one view and no plugin store.Empty unless menuBar asked for it, and empty under disableAddTracks even then: both items are the add-track affordances that disableAddTracks removes, so what would be left is a bar of rows the session guards refuse. The bar draws nothing for an empty menu set. |