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.
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.
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.