blockly > Events > VarRename > (constructor)

Events.VarRename.(constructor)

Constructs a new instance of the VarRename class

Signature:

constructor(opt_variable?: VariableModel, newName?: string);

Parameters

Parameter Type Description
opt_variable VariableModel (Optional) The renamed variable. Undefined for a blank event.
newName string (Optional) The new name the variable will be changed to.