@univerjs/sheets-thread-comment-base v0.1.17 • Docs
Class: SheetsThreadCommentModel
Extends
Constructors
new SheetsThreadCommentModel()
new SheetsThreadCommentModel(_threadCommentModel, _univerInstanceService): SheetsThreadCommentModel
Parameters
Parameter | Type |
---|---|
_threadCommentModel | ThreadCommentModel |
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
Defined in
sheets-thread-comment-base/src/models/sheets-thread-comment.model.ts:36 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 (opens in a new tab) |
commentUpdate$ | public | Observable <SheetCommentUpdate > | undefined | - | sheets-thread-comment-base/src/models/sheets-thread-comment.model.ts:34 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
protected disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
IDisposable
Inherited from
Defined in
core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:100 (opens in a new tab)
getByLocation()
getByLocation(
unitId,
subUnitId,
row,
column): undefined | string
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
column | number |
Returns
undefined
| string
Defined in
sheets-thread-comment-base/src/models/sheets-thread-comment.model.ts:205 (opens in a new tab)
getComment()
getComment(
unitId,
subUnitId,
commentId): undefined | IThreadComment
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
commentId | string |
Returns
undefined
| IThreadComment
Defined in
sheets-thread-comment-base/src/models/sheets-thread-comment.model.ts:210 (opens in a new tab)
getCommentWithChildren()
getCommentWithChildren(
unitId,
subUnitId,
row,
column): undefined | {
children: childrenComments;
relativeUsers: Set<string>;
root: current;
}
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
column | number |
Returns
undefined
| {
children
: childrenComments
;
relativeUsers
: Set
<string
>;
root
: current
;
}
Defined in
sheets-thread-comment-base/src/models/sheets-thread-comment.model.ts:214 (opens in a new tab)
showCommentMarker()
showCommentMarker(
unitId,
subUnitId,
row,
column): boolean
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
column | number |
Returns
boolean
Defined in
sheets-thread-comment-base/src/models/sheets-thread-comment.model.ts:223 (opens in a new tab)