Home > blockly > Events > VarRename > (constructor)
Events.VarRename.(constructor)
Constructs a new instance of the VarRename class
Signature:
constructor(opt_variable?: IVariableModel<IVariableState>, newName?: string);
Parameters
| Parameter | Type | Description |
|---|---|---|
| opt_variable | IVariableModel<IVariableState> | (Optional) The renamed variable. Undefined for a blank event. |
| newName | string | (Optional) The new name the variable will be changed to. |