blockly > VariableMap > getVariableUsesById

Méthode VariableMap.getVariableUsesById()

v12: utilisez Blockly.Variables.getVariableUsesById.

Recherchez toutes les utilisations d'une variable nommée.

Signature :

getVariableUsesById(id: string): Block[];

Paramètres

Paramètre Type Description
id chaîne ID de la variable à rechercher.

Renvoie :

Bloquer[]

Tableau d'utilisations de blocs.