@univerjssheets-thread-commentindexclassesSheetsthreadcommentmodel

@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

ParameterType
_threadCommentModelThreadCommentModel
_univerInstanceServiceIUniverInstanceService

Returns

SheetsThreadCommentModel

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:96
commentUpdate$publicObservable<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

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getAllByLocation()

getAllByLocation(
   unitId, 
   subUnitId, 
   row, 
   column): IThreadComment[]

Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:236

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
columnnumber

Returns

IThreadComment[]


getByLocation()

getByLocation(
   unitId, 
   subUnitId, 
   row, 
   column): undefined | string

Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:230

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
columnnumber

Returns

undefined | string


getComment()

getComment(
   unitId, 
   subUnitId, 
   commentId): 
  | undefined
  | IThreadComment

Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:246

Parameters

ParameterType
unitIdstring
subUnitIdstring
commentIdstring

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

ParameterType
unitIdstring
subUnitIdstring
rownumber
columnnumber

Returns

Nullable<IThreadInfo>


getSubUnitAll()

getSubUnitAll(unitId, subUnitId): IThreadComment[]

Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:276

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

IThreadComment[]


showCommentMarker()

showCommentMarker(
   unitId, 
   subUnitId, 
   row, 
   column): boolean

Defined in: sheets-thread-comment/src/models/sheets-thread-comment.model.ts:262

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
columnnumber

Returns

boolean