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

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) Toggles the collapsed state of the parent comment.
reposition() Adjusts the positioning of this button within its container.