@univerjs/sheets-thread-comment v0.5.0-beta.1 • Docs
Class: FThreadComment
Constructors
new FThreadComment()
new FThreadComment(
_thread,
_parent,
_injector,
_commandService,
_univerInstanceService,
_threadCommentModel): FThreadComment
Parameters
Parameter | Type |
---|---|
_thread | IBaseComment | IThreadComment |
_parent | undefined | IThreadComment |
_injector | Injector |
_commandService | ICommandService |
_univerInstanceService | IUniverInstanceService |
_threadCommentModel | SheetsThreadCommentModel |
Returns
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
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
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
Parameter | Type | Description |
---|---|---|
resolved ? | boolean | Whether 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
Parameter | Type | Description |
---|---|---|
content | IDocumentBody | The new content of the comment |
Returns
Promise
<boolean
>
success or not
Defined in
sheets-thread-comment/src/facade/f-thread-comment.ts:116