Skip to main content

Home > 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

ConstructorModifiersDescription
(constructor)(id, workspace, container, commentView)Creates a new CollapseCommentBarButton 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)Toggles the collapsed state of the parent comment.
reposition()Adjusts the positioning of this button within its container.