Skip to main content

Home > blockly > VariableModel > setName

VariableModel.setName() method

Updates the user-visible name of this variable.

Signature:

setName(newName: string): this;

Parameters

ParameterTypeDescription
newNamestring

Returns:

this

The newly-updated variable.