DrawerWidgetSessionMixin
Auto-generated @jbrowse/mobx-state-tree API for the current JBrowse release — see pluggable elements for concepts. Built into JBrowse core. View source.
Properties
| Member | Description |
|---|---|
| drawerPosition | |
| drawerWidth | |
widgetswidgets: types.stripDefault(types.map(widgetStateModelType), {}) | |
| activeWidgets | |
minimizedminimized: types.stripDefault(types.boolean, false) |
Volatiles
| Member | Description |
|---|---|
poppedOutpoppedOut: false | true while the visible widget is shown in a modal dialog instead of the drawer. Volatile because a restored session that opened straight into a modal, with no drawer behind it, is disorienting |
Getters
| Member | Description |
|---|---|
visibleWidgetWidget | undefined | |
drawerVisibleboolean | whether the drawer column is on screen: there is something to show, it is not minimized to the FAB, and it is not currently a modal instead. A getter rather than each host's own &&, because the hosts drifted -- the app shell tested poppedOut and the embedded view did not, so the day a popout button reaches the embedded drawer header it would render the modal and the drawer at once. |
Actions
| Member | Description |
|---|---|
setDrawerPosition(arg: DrawerPosition) => void | |
updateDrawerWidth(drawerWidth: number, availableWidth?: number) => number | |
resizeDrawer(distance: number, availableWidth?: number) => number | |
| addWidget | |
showWidget(widget: any) => void | |
hideWidget(widget: any) => void | |
minimizeWidgetDrawer() => void | |
showWidgetDrawer() => void | |
popoutWidget() => void | show the visible widget in a modal dialog, freeing the drawer column |
returnWidgetToDrawer() => void | |
hideAllWidgets() => void | |
| editConfiguration | opens a configuration editor to configure the given thing, and sets the current task to be configuring it |
Related links
- Guide: Drawer widgets