Function dynamicAction
- dynamic
Action (node, options?): 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.
action: Action<HTMLElement, unknown, Record<never, any>>
Optional
data?: unknown
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.