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

blockly > Warning

Warning class

Class for a warning.

Signature:

export declare class Warning extends Icon 

Extends: Icon

Constructors

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

Properties

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

Methods

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.