blockly > VariableModel > setName

VariableModel.setName() method

Updates the user-visible name of this variable.

Signature:

setName(newName: string): this;

Parameters

Parameter Type Description
newName string

Returns:

this

The newly-updated variable.