Skip to main content

Home > blockly > Events > VarCreate

Events.VarCreate class

Notifies listeners that a variable model has been created.

Signature:

export declare class VarCreate extends VarBase 

Extends: VarBase

Constructors

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

Properties

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

Methods

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