[]
Sheets.ThreadedComments.ThreadedCommentPanel
• new ThreadedCommentPanel(host, workbook)
Represents the threaded comment panel for managing and navigating threaded comments in a 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 |
Indicates the container element or the ID of the container element where the panel will be rendered. |
workbook |
Workbook |
Indicates the workbook instance to which the threaded comment panel is attached. |
▸ attach(workbook): any
description attach to a workbook for threaded comment panel.
| Name | Type | Description |
|---|---|---|
workbook |
Workbook |
Indicates the workbook which is attached. |
any
void
▸ destroy(): any
description destroy the PivotPanel.
any
▸ detach(): void
description detach the workbook for threaded comment panel.
void
void
▸ findControl(host): ThreadedCommentPanel
Gets the ThreadedCommentPanel instance by the host element.
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 |
The host element or the host element id. |
The ThreadedCommentPanel instance.
▸ refresh(): void
refresh the threaded comment panel.
void