Skip to main content

Home > blockly > Block > setCommentText

Block.setCommentText() method

Set this block's comment text.

Signature:

setCommentText(text: string | null): void;

Parameters

ParameterTypeDescription
textstring | nullThe text, or null to delete.

Returns:

void