# JBrowseReactLinearGenomeViewRootModel

Auto-generated from the @jbrowse/mobx-state-tree model in the source — see the [developer guide](https://jbrowse.org/jb2/docs/developer_guide/) for concepts. [View source](https://github.com/GMOD/jbrowse-components/blob/main/products/jbrowse-react-linear-genome-view/src/createModel/createModel.ts).

Composes the shared EmbeddedRootModel with a LinearGenomeView session
and this product's own props.

## Properties

| Member | Description |
| --- | --- |
| **disableAddTracks**<br><code>disableAddTracks: types.stripDefault(types.boolean, false)</code> |  |
| **menuBar**<br><code>menuBar: types.stripDefault(types.boolean, false)</code> | 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. |
| **height**<br><code>height: types.maybe(types.string)</code> | 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 is what bounds it. |
| **drawerViewHeight**<br><code>drawerViewHeight: types.stripDefault(types.string, '100vh')</code> | 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 |
| --- | --- |
| **effectiveHeight**<br><code>string &#124; undefined</code> | 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 is what bounds it. The session's `stickyViewHeaders` reads it too. |

## Methods

| Member | Description |
| --- | --- |
| **menus**<br><code>() =&gt; { label: string; menuItems: MenuItem[]; }[]</code> | 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 app's own 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 nothing to hold when there is one view and no plugin store.<br><br>Empty unless `menuBar` asked for it, and empty under `disableAddTracks` even then: both items are the add-track affordances that option exists to remove, so what would be left is a bar of rows the session guards refuse. The bar draws nothing for an empty menu set. |

