RowArrangementWidget
Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the developer guide for concepts. Built into JBrowse core. View source.
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 |
|---|---|
idstring · default createElementId() |
The identifier references to this node resolve through. A snapshot that leaves it out gets a generated one. |
type"RowArrangementWidget" |
Always "RowArrangementWidget", the name a snapshot selects this model by. |
displayobject | undefined |
Getters
| Member | Description |
|---|---|
readonly string[] |
The rows.hidden the checkboxes show: the pending hides while the display's own has not moved since they were made, else its own. |
ReadonlySet<string> |
|
shownCountnumber |
How many rows show with the pending hides applied, which the last shown row's checkbox guards. |
Methods
| Member | Description |
|---|---|
| liveDisplay |
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. |
() => { label: string; onClick: () => void; }[] |
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 |
|---|---|
() => void |
Write the pending hides to rows.hidden once, where the display's own has not moved since they were made. |
() => void |
Drop the pending hides unwritten. |
(names: readonly string[]) => void |
Hide names, written to rows.hidden once the clicks pause: a hide is a fetch input on the variant display. |
showAll() => void |
"Show all": the pending hides go, then the display's showAllRows. |
showOnly(name: string) => void |
The row's "Show only this row", after the pending hides land. |
(name: string) => void |
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() => void |
"Reset to defaults": the pending hides go, then every rows member returns to the config's, pins and the Color by choice included. |