blockly > comments > CommentBarButton > (constructor)
comments.CommentBarButton.(constructor)
Creates a new CommentBarButton instance.
Signature:
constructor(id: string, workspace: WorkspaceSvg, container: SVGGElement);
Parameters
Parameter | Type | Description |
---|---|---|
id | string | The ID of this button's parent comment. |
workspace | WorkspaceSvg | The workspace this button's parent comment is on. |
container | SVGGElement | An SVG group that this button should be a child of. |