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
Inherited from
Properties
Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
---|---|---|---|---|---|---|
_disposed | protected | boolean | false | - | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
activelyChangingMatch$ | abstract | Observable <IFindMatch > | undefined | - | - | submodules/univer/packages/find-replace/src/services/find-replace.service.ts:69 |
matchesUpdate$ | abstract | Observable <IFindMatch []> | undefined | Find 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 |
unitId | abstract | string | undefined | - | - | 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
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getMatches()
abstract getMatches(): IFindMatch[]
Defined in: submodules/univer/packages/find-replace/src/services/find-replace.service.ts:71
Returns
moveToNextMatch()
abstract moveToNextMatch(params?): null | IFindMatch
Defined in: submodules/univer/packages/find-replace/src/services/find-replace.service.ts:73
Parameters
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
replaceString | string |
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
Parameter | Type |
---|---|
replaceString | string |
Returns
Promise
<IReplaceAllResult
>