Function dynamicAction
-
dynamicAction(
node: HTMLElement,
options?: {
action: Action<HTMLElement, unknown>;
data?: unknown;
warn?: boolean;
},
): ActionReturn<
{ action: Action<HTMLElement, unknown>; data?: unknown; warn?: boolean },
>Parameters
- node: HTMLElement
The node associated with the action.
Optionaloptions: { action: Action<HTMLElement, unknown>; data?: unknown; warn?: boolean }Defines the action to dynamically mount.
Returns ActionReturn<
{ action: Action<HTMLElement, unknown>; data?: unknown; warn?: boolean },
>The action lifecycle methods.
- node: HTMLElement
Applies the given action dynamically allowing the hosted action to be updated reactively while still appropriately handling the action lifecycle methods.