Skip to main content

blockly > Procedures > rename

Procedures.rename() function

Rename a procedure. Called by the editable field.

Signature:

export declare function rename(this: Field, name: string): string;

Parameters

Parameter

Type

Description

this

Field

name

string

The proposed new name.

Returns:

string

The accepted name.