blockly > common > getWorkspaceById

common.getWorkspaceById() function

Find the workspace with the specified ID.

Signature:

export declare function getWorkspaceById(id: string): Workspace | null;

Parameters

Parameter Type Description
id string ID of workspace to find.

Returns:

Workspace | null

The sought after workspace or null if not found.