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

protected

readonly

SVGGElement
icon

protected

readonly

SVGImageElement SVG image displayed on this button.
id

protected

readonly

string
workspace

protected

readonly

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.