store/workspaceLayout#
buildWorkspaceLayout()#
Build a workspace layout with the given start page as the initial tab.
Parameters#
| Parameter | Type |
|---|---|
startPage |
string |
Returns#
IJsonModel
clearPersistedWorkspaceLayout()#
Drop the persisted layout so the next restore falls back to the default.
Returns#
void
defaultWorkspaceLayout()#
The default layout for this user, honouring their configured start page.
Returns#
IJsonModel
getPageDisplayName()#
Get display name for a page label
Parameters#
| Parameter | Type |
|---|---|
label |
string |
Returns#
string
isSingletonPage()#
Check if a page type is singleton (only one tab allowed)
Parameters#
| Parameter | Type |
|---|---|
pageLabel |
string |
Returns#
boolean
isValidLayoutModel()#
Structural sanity check on a restored layout.
Returns false for a layout that cannot be shown, such as one with no tabset or tab, or with an invalid weight.
Parameters#
| Parameter | Type |
|---|---|
model |
unknown |
Returns#
model is IJsonModel
parseStoredWorkspaceLayout()#
Read the persisted layout, or null when there is nothing usable to restore.
Rejections are logged.
Parameters#
| Parameter | Type |
|---|---|
raw |
string | null | undefined |
Returns#
any
serializeWorkspaceLayout()#
Serialize a model for settings.workspaceLayout, stamped with the current schema version.
Parameters#
| Parameter | Type |
|---|---|
model |
IJsonModel |
Returns#
string
withoutRetiredPanelTabs()#
Drops dock tabs of plot actions that no longer have a panel, keeping each tabset's selection valid.
Parameters#
| Parameter | Type |
|---|---|
model |
IJsonModel |
Returns#
IJsonModel
DEFAULT_WORKSPACE_LAYOUT#
Default workspace layout — single tabset with Home tab
PAGE_DISPLAY_NAMES#
Page labels to human-readable names (used as tab titles before i18n)
resetWorkspaceLayout#
selectWorkspaceLayout#
Selector to get the workspace layout model
Parameters#
| Parameter | Type |
|---|---|
state |
{ workspaceLayout: WorkspaceLayoutState; } |
state.workspaceLayout |
WorkspaceLayoutState |
Returns#
IJsonModel
setWorkspaceLayout#
SINGLETON_PAGES#
Pages that can only exist once in the workspace. Multi-instance pages (not in this set) can be opened in multiple tabs.
WORKSPACE_LAYOUT_VERSION#
workspaceLayout#
WorkspaceLayoutState#
Properties#
model#
Serialized FlexLayout JSON model