Function dynamicAction
- dynamicAction(
node: HTMLElement,
options?: {
action: Action<HTMLElement, unknown, Record<never, any>>;
data?: unknown;
},
): ActionReturn<DynamicActionOptions> Parameters
- node: HTMLElement
The node associated with the action.
Optional
options: { action: Action<HTMLElement, unknown, Record<never, any>>; data?: unknown }Defines the action to dynamically mount.
Returns ActionReturn<DynamicActionOptions>
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.