blockly > comments > CommentBarButton > (constructor)

comments.CommentBarButton.(constructor)

建立新的 CommentBarButton 執行個體。

Signature:

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

參數

參數 類型 說明
id 字串 這個按鈕所屬留言的 ID。
工作區 WorkspaceSvg 按鈕所在父項留言的工作區。
容器 SVGGElement 按鈕應為子項的 SVG 群組。