Skip to content

Vizel API / core/src / VizelFindReplaceSpec

Interface: VizelFindReplaceSpec

Defined in: packages/core/src/builders/find-replace.ts:11

Derived display state for the VizelFindReplace panel. Each framework component recomputes this whenever the plugin state changes, then drives rendering off the boolean / string fields instead of duplicating the matchCount > 0 ? "${i}/${n}" : noResults ternary in three places.

Properties

currentMatch

ts
currentMatch: number;

Defined in: packages/core/src/builders/find-replace.ts:19

1-based index of the active match (0 when no active match).


isDisabled

ts
isDisabled: boolean;

Defined in: packages/core/src/builders/find-replace.ts:23

Whether navigation/replace buttons should be disabled.


isOpen

ts
isOpen: boolean;

Defined in: packages/core/src/builders/find-replace.ts:13

Whether the panel is open (mirrors state.isOpen).


isReplaceMode

ts
isReplaceMode: boolean;

Defined in: packages/core/src/builders/find-replace.ts:15

Whether the replace input row should be rendered.


matchCount

ts
matchCount: number;

Defined in: packages/core/src/builders/find-replace.ts:17

Total number of matches.


matchCountDisplay

ts
matchCountDisplay: string;

Defined in: packages/core/src/builders/find-replace.ts:21

Display string for the match counter (e.g. "1/5" or "No matches").

Released under the MIT License.