Vizel API / core/src / buildVizelFindReplaceSpec
Function: buildVizelFindReplaceSpec()
ts
function buildVizelFindReplaceSpec(state, noResultsLabel): VizelFindReplaceSpec;Defined in: packages/core/src/builders/find-replace.ts:35
Compute the find-replace panel display state.
Accepts the live plugin state (or null while the editor hasn't registered the plugin yet) plus the resolved noResults label — the latter is the only piece of locale data the counter cares about, so the helper takes a string rather than a full locale to keep the unit testable.
Parameters
| Parameter | Type |
|---|---|
state | | VizelFindReplaceState | null |
noResultsLabel | string |