O3 Framework / OpenWorkspace
Defined in: packages/framework/esm-styleguide/src/workspaces/workspaces.ts:113
See [[WorkspaceDefinition]] for more information about these properties
additionalProps:
object
Defined in: packages/framework/esm-styleguide/src/workspaces/workspaces.ts:114
canHide:
boolean
Defined in: packages/framework/esm-extensions/src/workspaces.ts:14
canMaximize:
boolean
Defined in: packages/framework/esm-extensions/src/workspaces.ts:15
WorkspaceRegistration.canMaximize
optionalcurrentWorkspaceGroup:string
Defined in: packages/framework/esm-styleguide/src/workspaces/workspaces.ts:115
groups:
string[]
Defined in: packages/framework/esm-extensions/src/workspaces.ts:20
moduleName:
string
Defined in: packages/framework/esm-extensions/src/workspaces.ts:19
WorkspaceRegistration.moduleName
name:
string
Defined in: packages/framework/esm-extensions/src/workspaces.ts:10
preferredWindowSize:
WorkspaceWindowState
Defined in: packages/framework/esm-extensions/src/workspaces.ts:17
WorkspaceRegistration.preferredWindowSize
title:
string
Defined in: packages/framework/esm-extensions/src/workspaces.ts:11
optionaltitleNode:ReactNode
Defined in: packages/framework/esm-extensions/src/workspaces.ts:12
WorkspaceRegistration.titleNode
type:
string
Defined in: packages/framework/esm-extensions/src/workspaces.ts:13
width:
"narrow"|"wider"|"extra-wide"
Defined in: packages/framework/esm-extensions/src/workspaces.ts:16
closeWorkspace(
closeWorkspaceOptions?):void
Defined in: packages/framework/esm-styleguide/src/workspaces/workspaces.ts:49
Call this function to close the workspace. This function will prompt the user if there are any unsaved changes to workspace.
You can pass onWorkspaceClose function to be called when the workspace is finally
closed, given the user forcefully closes the workspace.
void
DefaultWorkspaceProps.closeWorkspace
closeWorkspaceWithSavedChanges(
closeWorkspaceOptions?):void
Defined in: packages/framework/esm-styleguide/src/workspaces/workspaces.ts:59
Call this function to close the workspace after the form is saved. This function will directly close the workspace without any prompt
void
DefaultWorkspaceProps.closeWorkspaceWithSavedChanges
load():
Promise<LifeCycles>
Defined in: packages/framework/esm-extensions/src/workspaces.ts:18
Promise<LifeCycles>
promptBeforeClosing(
testFcn):void
Defined in: packages/framework/esm-styleguide/src/workspaces/workspaces.ts:54
Call this with a no-args function that returns true if the user should be prompted before this workspace is closed; e.g. if there is unsaved data.
() => boolean
void
DefaultWorkspaceProps.promptBeforeClosing
setTitle(
title,titleNode?):void
Defined in: packages/framework/esm-styleguide/src/workspaces/workspaces.ts:74
Use this to set the workspace title if it needs to be set dynamically.
Workspace titles generally are set in the workspace declaration in the routes.json file. They can also
be set by the workspace launcher by passing workspaceTitle in the additionalProps
parameter of the launchWorkspace function. This function is useful when the workspace
title needs to be set dynamically.
string
The title to set. If using titleNode, set this to a human-readable string which will identify the workspace in notifications and other places.
ReactNode
A React object to put in the workspace header in place of the title. This is useful for displaying custom elements in the header. Note that custom header elements can also be attached to the workspace header extension slots.
void