O3 Framework / CloseWorkspaceOptions
Defined in: packages/framework/esm-styleguide/src/workspaces/workspaces.ts:15
optionalcloseWorkspaceGroup:boolean
Defined in: packages/framework/esm-styleguide/src/workspaces/workspaces.ts:37
Controls whether the workspace group should be closed and store to be cleared when this workspace is closed. Defaults to true except when opening a new workspace of the same group.
true
optionalignoreChanges:boolean
Defined in: packages/framework/esm-styleguide/src/workspaces/workspaces.ts:22
Whether to close the workspace ignoring all the changes present in the workspace.
If ignoreChanges is true, the user will not be prompted to save changes before closing
even if the testFcn passed to promptBeforeClosing returns true.
optionalonWorkspaceClose: () =>void
Defined in: packages/framework/esm-styleguide/src/workspaces/workspaces.ts:29
If you want to take an action after the workspace is closed, you can pass your function as
onWorkspaceClose. This function will be called only after the workspace is closed, given
that the user might be shown a prompt.
void
void