Type Alias DynamicActionOptions

DynamicActionOptions:
    | undefined
    | { action: Action<HTMLElement, unknown>; data?: unknown; warn?: boolean }

Options for dynamicAction. Provide the hosted action and any associated data that is passed to the action. You may update the action or data dynamically to apply new actions. You may also opt to enable warn which will post a console warning when the updated action is not a function.