Skip to main content

Home > @jsplumbtoolkit/dialogs-core > extractValueFromElement

extractValueFromElement() function

Extract the value represented by the given element.

Signature:

export declare function extractValueFromElement(el: HTMLElement, unresolvedElementGetter?: (el: Element) => any): any;

Parameters

ParameterTypeDescription
elHTMLElementElement to extract value from.
unresolvedElementGetter(el: Element) => anyOptional function to use when an element with an unknown tag has a jtk-att declared on it. This function is given the element and whatever it returns - even null - will be the return value.

Returns:

any