blockly > comments > CollapseCommentBarButton
comments.CollapseCommentBarButton クラス
コメントの折りたたみ状態を切り替えるボタン。
署名:
export declare class CollapseCommentBarButton extends CommentBarButton
拡張: CommentBarButton
コンストラクタ
コンストラクタ | 修飾子 | 説明 |
---|---|---|
(constructor)(id, workspace, container) | 新しい CollapseCommentBarButton インスタンスを作成します。 |
プロパティ
プロパティ | 修飾子 | タイプ | 説明 |
---|---|---|---|
コンテナ |
|
SVGGElement | |
アイコン |
|
SVGImageElement | このボタンに表示される SVG 画像。 |
id |
|
文字列 | |
ワークスペース |
|
WorkspaceSvg |
メソッド
メソッド | 修飾子 | 説明 |
---|---|---|
dispose() | このボタンを破棄します。 | |
performAction(e) | 親コメントの折りたたみ状態を切り替えます。 | |
reposition() | コンテナ内のボタンの位置を調整します。 |