Documentation Index
Fetch the complete documentation index at: https://developer.dromo.io/llms.txt
Use this file to discover all available pages before exploring further.
DromoUploader Instance
To begin an import, you first need to create an instance of theDromoUploader:
Constructor
TheDromoUploader constructor takes 4 parameters:
Your Dromo front-end license key, which can be found in the Dromo dashboard.
An array of fields which comprise your import schema.
Settings to change the behavior of the Dromo importer.
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.registerColumnHook(fieldKey: string, callback: ColumnHookFn) => void
Used to register a column hook callback on the field with the given field key.
registerStepHook(stepHookType: "UPLOAD_STEP" | "REVIEW_STEP" | "REVIEW_STEP_POST_HOOKS", callback: StepHookFn) => void
Used to register a step hook callback of the given type.
registerRowDeleteHook(callback: RowDeleteHookFn) => void
Used to register a row delete hook callback.
registerCustomStep(config) => void
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.beforeFinish(callback: BeforeFinishCallbackFn) => void
Used to register a beforeFinish callback.
onResults(callback: OnResultsCallbackFn) => void
Used to register an onResults callback.
onCancel() => void
Called when the user exits the Dromo Uploader without completing the import.
onUserEvent(callback: (event: IUserEvent) => void) => void
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.
Starting the Import
With Dromo fully configured, callopen() on the uploader instance to start the import process.
open() => void
Opens the Dromo Uploader interface to begin the import process.
