@univerjs/sheets-thread-comment v0.5.4
Class: SheetsThreadCommentModel
Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:28
Extends
Constructors
new SheetsThreadCommentModel()
new SheetsThreadCommentModel(_threadCommentModel, _univerInstanceService): SheetsThreadCommentModel
Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:35
Parameters
Parameter | Type |
---|---|
_threadCommentModel | ThreadCommentModel |
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:96 |
commentUpdate$ | public | Observable <SheetCommentUpdate > | undefined | - | sheets-thread-comment/src/models/sheets-thread-comment.model.ts:33 |
Methods
dispose()
dispose(): void
Defined in: core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getAllByLocation()
getAllByLocation(
unitId,
subUnitId,
row,
column): IThreadComment[]
Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:236
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
column | number |
Returns
getByLocation()
getByLocation(
unitId,
subUnitId,
row,
column): undefined | string
Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:230
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
column | number |
Returns
undefined
| string
getComment()
getComment(
unitId,
subUnitId,
commentId):
| undefined
| IThreadComment
Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:246
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
commentId | string |
Returns
| undefined
| IThreadComment
getCommentWithChildren()
getCommentWithChildren(
unitId,
subUnitId,
row,
column): Nullable<IThreadInfo>
Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:250
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
column | number |
Returns
getSubUnitAll()
getSubUnitAll(unitId, subUnitId): IThreadComment[]
Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:276
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
showCommentMarker()
showCommentMarker(
unitId,
subUnitId,
row,
column): boolean
Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:262
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
column | number |
Returns
boolean