blockly > Workspace > getVariableUsesById

Méthode Workspace.getVariableUsesById()

v12: utilisez Blockly.Workspace.getVariableMap().getVariableUsesById

Recherchez toutes les utilisations de la variable donnée, qui est identifiée par un ID.

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.