[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
在线咨询 立即试用
(Showing Draft Content)

GC.Spread.Sheets.ThreadedComments.ThreadedCommentPanel

Class: ThreadedCommentPanel

Sheets.ThreadedComments.ThreadedCommentPanel

Table of contents

Constructors

Methods

Constructors

constructor

• 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);

Parameters

Name Type Description
host string | HTMLElement 表示将在其中渲染面板的容器元素或容器元素的ID。
workbook Workbook 表示评论面板所附加到的工作簿实例。

Methods

attach

▸ attach(workbook): void

description 附加到工作簿以用于评论面板。

Parameters

Name Type Description
workbook Workbook 表示被附加的工作簿。

Returns

void

void


destroy

▸ destroy(): void

description 销毁 PivotPanel。

Returns

void


detach

▸ detach(): void

description 分离工作簿以用于评论面板。

Returns

void

void


findControl

▸ 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");
}

Parameters

Name Type Description
host string | HTMLElement 宿主元素或宿主元素id。

Returns

ThreadedCommentPanel

ThreadedCommentPanel实例。


refresh

▸ refresh(): void

刷新评论面板。

Returns

void