@univerjs/sheets-thread-comment v0.5.0-beta.1 • 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/src/models/sheets-thread-comment.model.ts:35
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 |
commentUpdate$ | public | Observable <SheetCommentUpdate > | undefined | - | sheets-thread-comment/src/models/sheets-thread-comment.model.ts:33 |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:100
getAllByLocation()
getAllByLocation(
unitId,
subUnitId,
row,
column): IThreadComment[]
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
column | number |
Returns
Defined in
sheets-thread-comment/src/models/sheets-thread-comment.model.ts:236
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/src/models/sheets-thread-comment.model.ts:230
getComment()
getComment(
unitId,
subUnitId,
commentId): undefined | IThreadComment
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
commentId | string |
Returns
undefined
| IThreadComment
Defined in
sheets-thread-comment/src/models/sheets-thread-comment.model.ts:246
getCommentWithChildren()
getCommentWithChildren(
unitId,
subUnitId,
row,
column): Nullable<IThreadInfo>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
column | number |
Returns
Nullable
<IThreadInfo
>
Defined in
sheets-thread-comment/src/models/sheets-thread-comment.model.ts:250
getSubUnitAll()
getSubUnitAll(unitId, subUnitId): IThreadComment[]
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
Defined in
sheets-thread-comment/src/models/sheets-thread-comment.model.ts:276
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/src/models/sheets-thread-comment.model.ts:262