Skip to main content

MultipleViewsSessionMixin

Note: this document is automatically generated from mobx-state-tree objects in our source code. See Core concepts and intro to pluggable elements for more info

Source file

packages/product-core/src/Session/MultipleViews.ts

composed of

MultipleViewsSessionMixin - Properties

property: views

// type signature
IArrayType<IAnyType>
// code
views: types.array(pluginManager.pluggableMstType('view', 'stateModel'))

MultipleViewsSessionMixin - Actions

action: moveViewDown

// type signature
moveViewDown: (id: string) => void

action: moveViewUp

// type signature
moveViewUp: (id: string) => void

action: moveViewToTop

// type signature
moveViewToTop: (id: string) => void

action: moveViewToBottom

// type signature
moveViewToBottom: (id: string) => void

action: addView

// type signature
addView: (typeName: string, initialState?: {}) => any

action: removeView

// type signature
removeView: (view: { id: string; displayName: string; minimized: boolean; } & NonEmptyObject & { width: number; } & { menuItems(): MenuItem[]; } & { setDisplayName(name: string): void; setWidth(newWidth: number): void; setMinimized(flag: boolean): void; } & IStateTreeNode<...>) => void

action: addLinearGenomeViewOfAssembly

// type signature
addLinearGenomeViewOfAssembly: (assemblyName: string, initialState?: {}) => any

action: addViewOfAssembly

// type signature
addViewOfAssembly: (viewType: string, assemblyName: string, initialState?: Record<string, unknown>) => any

action: addViewFromAnotherView

// type signature
addViewFromAnotherView: (viewType: string, otherView: { id: string; displayName: string; minimized: boolean; displayedRegions: IMSTArray<IModelType<{ refName: ISimpleType<string>; start: ISimpleType<number>; end: ISimpleType<...>; reversed: IOptionalIType<...>; } & { ...; }, { ...; }, _NotCustomized, _NotCustomized>> & IStateTreeNode<...>;...