Skip to main content

blockly > serialization > workspaceComments > append

serialization.workspaceComments.append() function

Appends the comment defined by the given state to the given workspace.

Signature:

export declare function append(state: State, workspace: Workspace, input?: {
recordUndo?: boolean;
}): WorkspaceComment;

Parameters

Parameter

Type

Description

state

State

workspace

Workspace

{ recordUndo }

(not declared)

(Optional)

input

{ recordUndo?: boolean; }

(Optional)

Returns:

WorkspaceComment