Overview
onUserEvent is a callback you can register on a DromoUploader instance to receive real-time notifications when a user interacts with specific UI controls inside the importer. It gives your host application observability into what the user is doing — useful for analytics, audit logging, conditional UI reactions, or debugging.
Registration
Only one callback can be registered per instance. Calling
onUserEvent a second time replaces the first.Callback Signature
IUserEvent object:
Event Types
Currently one event type is emitted:BUTTON_CLICK Payload
WheneventType is "BUTTON_CLICK", the payload is:
step values
Button Name Reference
The full set ofbuttonName values, grouped by step:
Navigation (cross-step)
Upload step
Header select step
Column match step
Select / value match step
Review step
Exit confirmation modal
Generic alert / modal actions
Error Handling
Errors thrown inside youronUserEvent callback are caught by Dromo and logged as a warning — they will not crash the importer or interrupt the user’s flow:
Example
Notes
- The callback is fire-and-forget from Dromo’s perspective — the return value is ignored and the importer does not await it.
- The callback is registered on the importer instance, so each importer instance can have its own independent
onUserEventhandler. - The callback is not invoked in headless mode (server-side Lambda execution), only during interactive browser sessions.
