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

protected

readonly

SVGGElement
icon

protected

readonly

SVGImageElement SVG-Bild, das auf dieser Schaltfläche angezeigt wird.
id

protected

readonly

String
Arbeitsbereich

protected

readonly

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.