blockly > BlockSvg > setWarningText

BlockSvg.setWarningText() method

Set this block's warning text.

Signature:

setWarningText(text: string | null, id?: string): void;

Parameters

Parameter Type Description
text string | null The text, or null to delete.
id string (Optional) An optional ID for the warning text to be able to maintain multiple warnings.

Returns:

void