[]
Sheets.ThreadedComments.ThreadedCommentPanel
• new ThreadedCommentPanel(host, workbook)
ワークブック内のスレッド式コメントを管理および閲覧するためのスレッド式コメントパネルを表します。
実例
const spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
const panelHost = document.getElementById("threadedCommentPanel");
const threadedCommentPanel = new GC.Spread.Sheets.ThreadedComments.ThreadedCommentPanel(panelHost, spread);
| 名前 | 型 | 説明 |
|---|---|---|
host |
string | HTMLElement |
パネルを描画するコンテナー要素、またはその要素のIDを指定します。 |
workbook |
Workbook |
スレッド式コメントパネルが関連付けられているワークブックインスタンスを示します。 |
▸ attach(workbook): void
説明 スレッド式コメントパネルをワークブックに関連付けます。
| 名前 | 型 | 説明 |
|---|---|---|
workbook |
Workbook |
関連付けられているワークブックを示します。 |
void
戻り値はありません。
▸ destroy(): void
説明 スレッド式コメントパネルを破棄します。
void
▸ detach(): void
説明 スレッド式コメントパネルとワークブックの関連付けを解除します。
void
戻り値はありません。
▸ findControl(host): ThreadedCommentPanel
ホスト要素からThreadedCommentPanelインスタンスを取得します。
実例
window.onload = function(){
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
var threadedCommentPanel = new GC.Spread.Sheets.ThreadedComments.ThreadedCommentPanel(document.getElementById("threadedCommentPanel"));
threadedCommentPanel.workbook(spread);
var threadedCommentPanelInstance = GC.Spread.Sheets.ThreadedComments.ThreadedCommentPanel.findControl("threadedCommentPanel");
}
| 名前 | 型 | 説明 |
|---|---|---|
host |
string | HTMLElement |
ホスト要素またはホスト要素ID。 |
ThreadedCommentPanelインスタンス。
▸ refresh(): void
スレッド式コメントパネルを更新します。
void