blockly > Warning > setText

Warning.setText() method

Set this warning's text.

Signature:

setText(text: string, id: string): void;

Parameters

Parameter Type Description
text string Warning text (or '' to delete). This supports linebreaks.
id string An ID for this text entry to be able to maintain multiple warnings.

Returns:

void