[]
        
(Showing Draft Content)

GC.Spread.Sheets.ThreadedComments.ThreadedCommentPanel

クラス: ThreadedCommentPanel

Sheets.ThreadedComments.ThreadedCommentPanel

Table of contents

コンストラクタ

メソッド

コンストラクタ

constructor

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

attach(workbook): void

説明 スレッド式コメントパネルをワークブックに関連付けます。

パラメータ

名前 説明
workbook Workbook 関連付けられているワークブックを示します。

戻り値

void

戻り値はありません。


destroy

destroy(): void

説明 スレッド式コメントパネルを破棄します。

戻り値

void


detach

detach(): void

説明 スレッド式コメントパネルとワークブックの関連付けを解除します。

戻り値

void

戻り値はありません。


findControl

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

ThreadedCommentPanelインスタンス。


refresh

refresh(): void

スレッド式コメントパネルを更新します。

戻り値

void