blockly > Workspace > getBlockById
Méthode Workspace.getBlockById()
Recherchez le bloc correspondant à l'ID spécifié dans cet espace de travail.
Signature :
getBlockById(id: string): Block | null;
Paramètres
Paramètres | Type | Description |
---|---|---|
id | chaîne | ID du bloc à rechercher. |
Renvoie :
Bloquer | null
Bloc recherché, ou valeur nulle en cas d'absence.