Skip to main content

Home > 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

ParameterTypeDescription
thisField
namestringThe proposed new name.

Returns:

string

The accepted name.