@univerjs/sheets-thread-comment v0.5.0-beta.1Docs


Class: FThreadComment

Constructors

new FThreadComment()

new FThreadComment(
   _thread, 
   _parent, 
   _injector, 
   _commandService, 
   _univerInstanceService, 
   _threadCommentModel): FThreadComment

Parameters

ParameterType
_threadIBaseComment | IThreadComment
_parentundefined | IThreadComment
_injectorInjector
_commandServiceICommandService
_univerInstanceServiceIUniverInstanceService
_threadCommentModelSheetsThreadCommentModel

Returns

FThreadComment

Defined in

sheets-thread-comment/src/facade/f-thread-comment.ts:26

Methods

delete()

delete(): Promise<boolean>

Delete the comment and it’s replies

Returns

Promise<boolean>

success or not

Defined in

sheets-thread-comment/src/facade/f-thread-comment.ts:100


getCommentData()

getCommentData(): IBaseComment

Get the comment data

Returns

IBaseComment

The comment data

Defined in

sheets-thread-comment/src/facade/f-thread-comment.ts:55


getContent()

getContent(): IDocumentBody

Get the content of the comment

Returns

IDocumentBody

The content of the comment

Defined in

sheets-thread-comment/src/facade/f-thread-comment.ts:92


getIsRoot()

getIsRoot(): boolean

Whether the comment is a root comment

Returns

boolean

Whether the comment is a root comment

Defined in

sheets-thread-comment/src/facade/f-thread-comment.ts:47


getRange()

getRange(): null | FRange

Get the range of the comment

Returns

null | FRange

The range of the comment

Defined in

sheets-thread-comment/src/facade/f-thread-comment.ts:75


getReplies()

getReplies(): undefined | FThreadComment[]

Get the replies of the comment

Returns

undefined | FThreadComment[]

the replies of the comment

Defined in

sheets-thread-comment/src/facade/f-thread-comment.ts:64


resolve()

resolve(resolved?): Promise<boolean>

Resolve the comment

Parameters

ParameterTypeDescription
resolved?booleanWhether the comment is resolved

Returns

Promise<boolean>

success or not

Defined in

sheets-thread-comment/src/facade/f-thread-comment.ts:140


update()

update(content): Promise<boolean>

Update the comment content

Parameters

ParameterTypeDescription
contentIDocumentBodyThe new content of the comment

Returns

Promise<boolean>

success or not

Defined in

sheets-thread-comment/src/facade/f-thread-comment.ts:116