O3 Framework / launchWorkspace
launchWorkspace<
T>(name,additionalProps?):void
Defined in: packages/framework/esm-styleguide/src/workspaces/workspaces.ts:305
This launches a workspace by its name. The workspace must have been registered.
Workspaces should be registered in the routes.json file.
For the workspace to appear, there must be either a <WorkspaceOverlay /> or
a <WorkspaceWindow /> component rendered.
The behavior of this function is as follows:
Note that this function just manipulates the workspace store. The UI logic is handled by the components that display workspaces.
Additional props can be passed to the workspace component being launched. Passing a
prop named workspaceTitle will override the title of the workspace.
T extends object | DefaultWorkspaceProps = DefaultWorkspaceProps & object
string
The name of the workspace to launch
Omit<T, keyof DefaultWorkspaceProps> & object
Props to pass to the workspace component being launched. Passing
a prop named workspaceTitle will override the title of the workspace.
void
migrate to workspace v2 and use launchWorkspace2 instead. See: https://openmrs.atlassian.net/wiki/spaces/docs/pages/615677981/Workspace+v2+Migration+Guide