Skip to main content

Home > blockly > comments > CommentBarButton > (constructor)

comments.CommentBarButton.(constructor)

Creates a new CommentBarButton 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 on.
containerSVGGElementAn SVG group that this button should be a child of.
commentViewCommentView