Stay organized with collections Save and categorize content based on your preferences.

blockly > Warning

Warning class

Class for a warning.


export declare class Warning extends Icon 

Extends: Icon


Constructor Modifiers Description
(constructor)(block) Constructs a new instance of the Warning class


Property Modifiers Type Description
collapseHidden boolean Does this icon get hidden when the block is collapsed?


Method Modifiers Description
dispose() Dispose of this warning.
drawIcon_(group) protected Draw the warning icon.
getText() Get this warning's texts.
setText(text, id) Set this warning's text.
setVisible(visible) Show or hide the warning bubble.