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