Editor / DOM Helper / applyTypedInput
Function: applyTypedInput()
ts
function applyTypedInput(params): void;Applies a typed input widget to a DOM element.
Parameters
| Parameter | Type | Description |
|---|---|---|
| { | Configuration object for the typed input |
|
| CSS selector of the input element to enhance |
| ( | Array of available input types or type definitions |
Returns
void
Example
typescript
applyTypedInput({
selector: '$myInput',
types: ['str', 'num', 'bool']
});