blockly > Workspace > getCommentById

Méthode Workspace.getCommentById()

Recherchez le commentaire sur cet espace de travail avec l'ID spécifié.

Signature :

getCommentById(id: string): WorkspaceComment | null;

Paramètres

Paramètre Type Description
id chaîne ID du commentaire à rechercher.

Renvoie :

WorkspaceComment | null

Commentaire recherché, ou "null" si aucun n'est trouvé.