# RowArrangementWidget

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. Built into JBrowse core. [View source](https://github.com/GMOD/jbrowse-components/blob/main/packages/tree-sidebar/src/rowArrangementDrawer/stateModel.ts).

Drawer widget editing one row display's `rows` live: which rows show, their
order, labels and colors. The display is a safe reference, so hiding its
track empties the drawer rather than leaving it writing to a dead node.

## Properties

| Member | Description |
| --- | --- |
| **id**<br><code>string</code> · default <code>createElementId()</code> | The identifier references to this node resolve through. A snapshot that leaves it out gets a generated one. |
| **type**<br><code>"RowArrangementWidget"</code> | Always `"RowArrangementWidget"`, the name a snapshot selects this model by. |
| **display**<br><code>object &#124; undefined</code> |  |

## Getters

| Member | Description |
| --- | --- |
| **hidden**<br><code>readonly string[]</code> | The `rows.hidden` the checkboxes show: the pending hides while the display's own has not moved since they were made, else its own. |
| **hiddenSet**<br><code>ReadonlySet&lt;string&gt;</code> |  |
| **shownCount**<br><code>number</code> | How many rows show with the pending hides applied, which the last shown row's checkbox guards. |

## Methods

| Member | Description |
| --- | --- |
| **liveDisplay**<br><code>() =&gt; (STNValue&lt;T["TypeWithoutSTN"], IMaybe&lt;IReferenceType&lt;T&gt;&gt;&gt; &amp; RowArrangementDisplay) &#124; undefined</code> | The display, where it is alive and one the drawer edits; a method, so a display dying mid-action is never answered from a cache. |
| **drawerMenuItems**<br><code>() =&gt; { label: string; onClick: () =&gt; void; }[]</code> | The drawer header ⋮ menu's own rows: "Reset to defaults" while the rows differ from the config's, and "Edit plot..." where the display has a plot dialog. |

## Actions

| Member | Description |
| --- | --- |
| **flushHidden**<br><code>() =&gt; void</code> | Write the pending hides to `rows.hidden` once, where the display's own has not moved since they were made. |
| **dropHidden**<br><code>() =&gt; void</code> | Drop the pending hides unwritten. |
| **editHidden**<br><code>(names: readonly string[]) =&gt; void</code> | Hide `names`, written to `rows.hidden` once the clicks pause: a hide is a fetch input on the variant display. |
| **showAll**<br><code>() =&gt; void</code> | "Show all": the pending hides go, then the display's `showAllRows`. |
| **showOnly**<br><code>(name: string) =&gt; void</code> | The row's "Show only this row", after the pending hides land. |
| **toggleHidden**<br><code>(name: string) =&gt; void</code> | Show or hide one row, by name. A row hidden through the row it answers to (a haplotype under its sample's name) shows by the sample's name giving way to its other rows' own. |
| **reset**<br><code>() =&gt; void</code> | "Reset to defaults": the pending hides go, then every `rows` member returns to the config's, pins and the Color by choice included. |

