blockly > WorkspaceComment > (constructeur)
WorkspaceComment.(constructor)
Construit une instance de la classe WorkspaceComment
.
Signature :
constructor(workspace: Workspace, content: string, height: number, width: number, opt_id?: string);
Paramètres
Paramètres | Type | Description |
---|---|---|
espace de travail | Workspace | Espace de travail du bloc. |
contenu | chaîne | Contenu de ce commentaire sur l'espace de travail. |
hauteur | number | Hauteur du commentaire. |
largeur | number | Largeur du commentaire. |
opt_id | chaîne | (Facultatif) Identifiant facultatif. Utilisez cet ID s'il est fourni. Sinon, créez-en un autre. |