Skip to content

Vizel API / core/src / buildVizelLinkEditorSpec

Function: buildVizelLinkEditorSpec()

ts
function buildVizelLinkEditorSpec(
   editor, 
   url, 
   enableEmbed): VizelLinkEditorSpec;

Defined in: packages/core/src/builders/link-editor.ts:81

Compute the link-editor display state from the live editor + URL input.

Parameters

ParameterTypeDescription
editorEditorCurrent editor instance.
urlstringCurrent value of the URL input (may be untrimmed).
enableEmbedbooleanWhether the consumer wants the embed toggle.

Returns

VizelLinkEditorSpec

Released under the MIT License.