Skip to main content

Home > blockly > comments > CollapseCommentBarButton > (constructor)

comments.CollapseCommentBarButton.(constructor)

Creates a new CollapseCommentBarButton instance.

Signature:

constructor(id: string, workspace: WorkspaceSvg, container: SVGGElement, commentView: CommentView);

Parameters

ParameterTypeDescription
idstringThe ID of this button's parent comment.
workspaceWorkspaceSvgThe workspace this button's parent comment is displayed on.
containerSVGGElementAn SVG group that this button should be a child of.
commentViewCommentView