blockly > WorkspaceSvg > newComment
Méthode WorkspaceSvg.newComment()
Obtenez un nouveau commentaire.
Signature :
newComment(id?: string): WorkspaceComment;
Paramètres
Paramètres | Type | Description |
---|---|---|
id | chaîne | (Facultatif) ID facultatif. Utilisez cet ID s'il est fourni. Sinon, créez-en un autre. |
Renvoie :
Commentaire créé.