@univerjssheets-thread-commentindexclassesSheetsthreadcommentmodel

@univerjs/sheets-thread-comment v0.5.0-beta.1Docs


Class: SheetsThreadCommentModel

Extends

Constructors

new SheetsThreadCommentModel()

new SheetsThreadCommentModel(_threadCommentModel, _univerInstanceService): SheetsThreadCommentModel

Parameters

ParameterType
_threadCommentModelThreadCommentModel
_univerInstanceServiceIUniverInstanceService

Returns

SheetsThreadCommentModel

Overrides

Disposable.constructor

Defined in

sheets-thread-comment/src/models/sheets-thread-comment.model.ts:35

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93
commentUpdate$publicObservable<SheetCommentUpdate>undefined-sheets-thread-comment/src/models/sheets-thread-comment.model.ts:33

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

core/src/shared/lifecycle.ts:100


getAllByLocation()

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
columnnumber

Returns

IThreadComment[]

Defined in

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


getByLocation()

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
columnnumber

Returns

undefined | string

Defined in

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


getComment()

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
commentIdstring

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

ParameterType
unitIdstring
subUnitIdstring
rownumber
columnnumber

Returns

Nullable<IThreadInfo>

Defined in

sheets-thread-comment/src/models/sheets-thread-comment.model.ts:250


getSubUnitAll()

getSubUnitAll(unitId, subUnitId): IThreadComment[]

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

IThreadComment[]

Defined in

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


showCommentMarker()

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
columnnumber

Returns

boolean

Defined in

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