Skip to main content

Home > @jsplumbtoolkit/dialogs-core > apply

apply() function

Apply the given object to the given DOM element. This method will find all child elements of el that have a jtk-att attribute set, and then attempt to set the value of any found DOM element with a value extracted from dataset.

Signature:

export declare function apply(dataset: Record<string, any>, el: any, autoCommitHandler?: (e: Element) => any, unresolvedElementSetter?: (e: Element, value: any) => any): void;

Parameters

ParameterTypeDescription
datasetRecord<string, any>
elany
autoCommitHandler(e: Element) => any
unresolvedElementSetter(e: Element, value: any) => any

Returns:

void