Skip to main content

DromoUploader Instance

To begin an import, you first need to create an instance of the DromoUploader:

Constructor

The DromoUploader constructor takes 4 parameters:
string
required
Your Dromo front-end license key, which can be found in the Dromo dashboard.
Field[]
required
An array of fields which comprise your import schema.
Settings
required
Settings to change the behavior of the Dromo importer.
User
required
Metadata about the end user to associate with the import.

Configuration Methods

Once you have an instance, you can register callbacks and configure its behavior using the following methods. You can register callbacks for running hooks and receiving results.
Used to register a column hook callback on the field with the given field key.
Used to register a standard row hook callback.
Used to register a bulk row hook callback.
Used to register a step hook callback of the given type.
Used to register a row delete hook callback.
Registers a custom step to be inserted into the import flow. Call before open(). Multiple steps at the same insertAfter position are presented in registration order.
Used to register a beforeFinish callback.
Used to register an onResults callback.
Called when the user exits the Dromo Uploader without completing the import.
Registers a callback that fires whenever the user interacts with a tracked UI control inside the importer (e.g. button clicks). Useful for analytics, audit logging, and conditional UI reactions. Only one callback can be registered per instance — calling this a second time replaces the first. Not invoked in headless mode. See the onUserEvent reference for event types, payload shapes, and the full button name reference.
Example of registering callbacks:

Starting the Import

With Dromo fully configured, call open() on the uploader instance to start the import process.
Opens the Dromo Uploader interface to begin the import process.