@univerjsfind-replaceclassesFindmodel

@univerjs/find-replace v0.5.4


Class: abstract FindModel

Defined in: submodules/univer/packages/find-replace/src/services/find-replace.service.ts:61

Extends

Constructors

new FindModel()

new FindModel(): FindModel

Returns

FindModel

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueDescriptionInherited fromDefined in
_disposedprotectedbooleanfalse-Disposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
activelyChangingMatch$abstractObservable<IFindMatch>undefined--submodules/univer/packages/find-replace/src/services/find-replace.service.ts:69
matchesUpdate$abstractObservable<IFindMatch[]>undefinedFind model should emit new matches from this observable if they changed no matter due to incremental or document’s content changes.-submodules/univer/packages/find-replace/src/services/find-replace.service.ts:68
unitIdabstractstringundefined--submodules/univer/packages/find-replace/src/services/find-replace.service.ts:62

Methods

dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getMatches()

abstract getMatches(): IFindMatch[]

Defined in: submodules/univer/packages/find-replace/src/services/find-replace.service.ts:71

Returns

IFindMatch[]


moveToNextMatch()

abstract moveToNextMatch(params?): null | IFindMatch

Defined in: submodules/univer/packages/find-replace/src/services/find-replace.service.ts:73

Parameters

ParameterType
params?IFindMoveParams

Returns

null | IFindMatch


moveToPreviousMatch()

abstract moveToPreviousMatch(params?): null | IFindMatch

Defined in: submodules/univer/packages/find-replace/src/services/find-replace.service.ts:74

Parameters

ParameterType
params?IFindMoveParams

Returns

null | IFindMatch


replace()

abstract replace(replaceString): Promise<boolean>

Defined in: submodules/univer/packages/find-replace/src/services/find-replace.service.ts:77

Replace the currently focused matching if there is one.

Parameters

ParameterType
replaceStringstring

Returns

Promise<boolean>


replaceAll()

abstract replaceAll(replaceString): Promise<IReplaceAllResult>

Defined in: submodules/univer/packages/find-replace/src/services/find-replace.service.ts:82

Replace all matches. This method would return how many

Parameters

ParameterType
replaceStringstring

Returns

Promise<IReplaceAllResult>