Skip to main content

Home > blockly > serialization > workspaceComments > WorkspaceCommentSerializer

serialization.workspaceComments.WorkspaceCommentSerializer class

Serializer for saving and loading workspace comment state.

Signature:

export declare class WorkspaceCommentSerializer implements ISerializer 

Implements: ISerializer

Properties

PropertyModifiersTypeDescription
prioritynumber

Methods

MethodModifiersDescription
clear(workspace)Disposes of any comments that exist on the given workspace.
load(state, workspace)Deserializes the comments defined by the given state into the given workspace.
save(workspace)Returns the state of all workspace comments in the given workspace.