Skip to main content

Home > blockly > comments > DeleteCommentBarButton

comments.DeleteCommentBarButton class

Button that deletes a comment.

Signature:

export declare class DeleteCommentBarButton extends CommentBarButton 

Extends: CommentBarButton

Constructors

ConstructorModifiersDescription
(constructor)(id, workspace, container, commentView)Creates a new DeleteCommentBarButton instance.

Properties

PropertyModifiersTypeDescription
commentViewprotected readonlyCommentView
containerprotected readonlySVGGElement
iconprotected readonlySVGImageElementSVG image displayed on this button.
idprotected readonlystring
workspaceprotected readonlyWorkspaceSvg

Methods

MethodModifiersDescription
dispose()Disposes of this button.
performAction(e)Deletes parent comment.
reposition()Adjusts the positioning of this button within its container.