blockly > comments > CollapseCommentBarButton

comments.CollapseCommentBarButton-Klasse

Schaltfläche zum Ein- und Ausblenden eines Kommentars.

Unterschrift:

export declare class CollapseCommentBarButton extends CommentBarButton 

Erweitert: CommentBarButton

Konstruktoren

Konstruktor Modifikatoren Beschreibung
(constructor)(id, workspace, container) Erstellt eine neue CollapseCommentBarButton-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) Legt fest, ob der übergeordnete Kommentar minimiert ist.
reposition() Passt die Positionierung dieser Schaltfläche in ihrem Container an.