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 |
|
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) | Legt fest, ob der übergeordnete Kommentar minimiert ist. | |
| reposition() | Passt die Positionierung dieser Schaltfläche in ihrem Container an. |