Function: promptName()
function promptName(
promptText,
defaultText,
callback
): void;
Defined in: packages/blockly/core/variables.ts:489
Prompt the user for a new variable name.
Parameters
| Parameter | Type | Description |
|---|---|---|
promptText | string | The string of the prompt. |
defaultText | string | The default value to show in the prompt's field. |
callback | (p1) => void | A callback. It will be passed the new variable name, or null if the user picked something illegal. |
Returns
void