Méthode Names.getName()
Convertir un nom d'entité Blockly en un nom d'entité exportable légal.
Signature :
getName(nameOrId: string, type: NameType | string): string;
Paramètres
Paramètres | Type | Description |
---|---|---|
nameOrId | chaîne | Nom de l'entité Blockly (aucune contrainte) ou ID de la variable. |
type | NameType | chaîne | Type de nom dans Blockly ('VARIABLE', 'PROCEDURE', 'DEVELOPER_VARIABLE', etc.). |
Renvoie :
chaîne
Nom d'entité légal dans la langue exportée.