Skip to content

Editor / DOM Helper / applyTypedInput

Function: applyTypedInput()

ts
function applyTypedInput(params): void;

Applies a typed input widget to a DOM element.

Parameters

ParameterTypeDescription

params

{ selector: string; types: (WidgetTypedInputType | EditorWidgetTypedInputTypeDefinition)[]; }

Configuration object for the typed input

params.selector

string

CSS selector of the input element to enhance

params.types

(WidgetTypedInputType | EditorWidgetTypedInputTypeDefinition)[]

Array of available input types or type definitions

Returns

void

Example

typescript
applyTypedInput({
  selector: '$myInput',
  types: ['str', 'num', 'bool']
});

Version v1.33.1 - Built on 2026-03-28