blockly > comments > CollapseCommentBarButton > (constructor)

comments.CollapseCommentBarButton.(constructor)

建立新的 CollapseCommentBarButton 例項。

Signature:

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

參數

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