Skip to main content

Home > blockly > Events > VarDelete

Events.VarDelete class

Notifies listeners that a variable model has been deleted.

Signature:

export declare class VarDelete extends VarBase 

Extends: VarBase

Constructors

ConstructorModifiersDescription
(constructor)(opt_variable)Constructs a new instance of the VarDelete class

Properties

PropertyModifiersTypeDescription
typeEventType
varName?string(Optional) The name of the variable that was deleted.
varType?string(Optional) The type of the variable that was deleted.

Methods

MethodModifiersDescription
run(forward)Run a variable deletion event.
toJson()Encode the event as JSON.