blockly > comments > CollapseCommentBarButton
comments.CollapseCommentBarButton class
Button that toggles the collapsed state of a comment.
Signature:
export declare class CollapseCommentBarButton extends CommentBarButton
Extends: CommentBarButton
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(id, workspace, container) | Creates a new CollapseCommentBarButton instance. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
container |
|
SVGGElement | |
icon |
|
SVGImageElement | SVG image displayed on this button. |
id |
|
string | |
workspace |
|
WorkspaceSvg |
Methods
Method | Modifiers | Description |
---|---|---|
dispose() | Disposes of this button. | |
performAction(e) | Toggles the collapsed state of the parent comment. | |
reposition() | Adjusts the positioning of this button within its container. |