GridBookmarkWidgetModel
Auto-generated @jbrowse/mobx-state-tree API for the current JBrowse release —
see pluggable elements for concepts. Provided by the
grid-bookmark plugin.
View source.
Properties
| Member | Description |
|---|---|
labellabel: types.optional(types.string, '') | |
highlighthighlight: types.optional(types.string, DEFAULT_HIGHLIGHT) | |
idid: ElementId | |
typetype: types.literal('GridBookmarkWidget') | |
| bookmarks | loaded from localStorage when not present in snapshot; sharedBookmarks from a shared URL are merged in via preProcessSnapshot |
Volatiles
| Member | Description |
|---|---|
selectedBookmarksselectedBookmarks: [] as IExtendedLabeledRegionModel[] | |
gridViewgridView: 'bookmarks' | which grid tab is visible: bookmarks or highlights |
Getters
| Member | Description |
|---|---|
assembliesInViewsSet<string> | assemblies currently displayed in any open view; the grids only show bookmarks/highlights belonging to these |
| visibleBookmarks | bookmarks belonging to an assembly currently open in a view |
Actions
| Member | Description |
|---|---|
setLabel(label: string) => void | |
setHighlight(color: string) => void | |
setGridView(arg: "bookmarks" | "both" | "highlights") => void | |
importBookmarks(regions: Region[]) => void | |
addBookmark(region: Region) => void | |
updateBookmarkLabel(bookmark: IExtendedLabeledRegionModel, label: string) => void | |
updateBookmarkHighlight(bookmark: IExtendedLabeledRegionModel, color: string) => void | |
updateBulkBookmarkHighlights(color: string) => void | |
setSelectedBookmarks(bookmarks: IExtendedLabeledRegionModel[]) => void | |
| setBookmarkedRegions | |
clearSelectedBookmarks() => void | |
| removeBookmarkObject |