[]
Sheets.ThreadedComments.ThreadedCommentPanel
• new ThreadedCommentPanel(host, workbook)
表示用于在工作簿中管理和导航评论的评论面板。
example
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);
| Name | Type | Description |
|---|---|---|
host |
string | HTMLElement |
表示将在其中渲染面板的容器元素或容器元素的ID。 |
workbook |
Workbook |
表示评论面板所附加到的工作簿实例。 |
▸ attach(workbook): void
description 附加到工作簿以用于评论面板。
| Name | Type | Description |
|---|---|---|
workbook |
Workbook |
表示被附加的工作簿。 |
void
void
▸ destroy(): void
description 销毁 PivotPanel。
void
▸ detach(): void
description 分离工作簿以用于评论面板。
void
void
▸ findControl(host): ThreadedCommentPanel
通过宿主元素获取ThreadedCommentPanel实例。
example
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");
}
| Name | Type | Description |
|---|---|---|
host |
string | HTMLElement |
宿主元素或宿主元素id。 |
ThreadedCommentPanel实例。
▸ refresh(): void
刷新评论面板。
void