blockly > comments > DeleteCommentBarButton
comments.DeleteCommentBarButton class
Button that deletes a comment.
Signature:
export declare class DeleteCommentBarButton extends CommentBarButton
Extends: CommentBarButton
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(id, workspace, container) | Creates a new DeleteCommentBarButton 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) | Deletes parent comment. | |
| reposition() | Adjusts the positioning of this button within its container. |