Skip to content

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

ParameterType
state| VizelFindReplaceState | null
noResultsLabelstring

Returns

VizelFindReplaceSpec

Released under the MIT License.