blockly > comments > DeleteCommentBarButton
Klasse „comments.DeleteCommentBarButton“
Schaltfläche zum Löschen eines Kommentars.
Unterschrift:
export declare class DeleteCommentBarButton extends CommentBarButton
Erweitert: CommentBarButton
Konstruktoren
| Konstruktor | Modifikatoren | Beschreibung |
|---|---|---|
| (constructor)(id, workspace, container) | Erstellt eine neue DeleteCommentBarButton-Instanz. |
Attribute
| Attribut | Modifikatoren | Typ | Beschreibung |
|---|---|---|---|
| Container |
|
SVGGElement | |
| icon |
|
SVGImageElement | SVG-Bild, das auf dieser Schaltfläche angezeigt wird. |
| id |
|
String | |
| Arbeitsbereich |
|
WorkspaceSvg |
Methoden
| Methode | Modifikatoren | Beschreibung |
|---|---|---|
| dispose() | Entfernt diese Schaltfläche. | |
| performAction(e) | Löscht den übergeordneten Kommentar. | |
| reposition() | Passt die Positionierung dieser Schaltfläche in ihrem Container an. |