Skip to content

Editor / DOM Helper / resolveInputKey

Function: resolveInputKey()

ts
function resolveInputKey(selector): string;

Extracts the key part from a resolved input selector.

The key is the part of the selector after -input-.

Parameters

ParameterTypeDescription

selector

string

A string representing the input selector.

Returns

string

The extracted key as a string.

Example

ts
resolveInputKey('$node-name'); // Returns 'node-name'
resolveInputKey('#node-input-custom'); // Returns 'custom'

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