blockly > comments > CommentBarButton > (constructor)

comments.CommentBarButton.(constructor)

创建新的 CommentBarButton 实例。

Signature:

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

参数

参数 类型 说明
id 字符串 相应按钮所属父级评论的 ID。
工作区 WorkspaceSvg 相应按钮的父评论所在的工作区。
容器 SVGGElement 相应按钮应作为子级的 SVG 组。