DromoUploader component is the primary way to integrate Dromo into your React application. It accepts the following props:
Your Dromo front-end license key, which can be found in the Dromo dashboard.
An array of Field objects which comprise your import schema.
Settings object to change the behavior of the Dromo importer.
User metadata object to associate with the import.
The ID of a pre-existing schema created in Schema Studio. If provided, the
fields, settings (except importIdentifier and developmentMode), and hooks props will be ignored in favor of the saved schema’s configuration. See Usage with saved schemas.An array of row hook functions.
An array of bulk row hook functions.
An array of initialization-only batch row hook functions. Each function receives a bounded slice of rows and its one-based batch number.
An array of row delete hook functions called when users remove rows.
An array of column hook objects. Each object has two entries:
The field key of the field this column hook should run on.
The column hook function.
An array of step hook objects. Each object has two entries:
An array of custom step configurations inserted into the import flow.
An array of custom file parser configurations.
A beforeFinish callback function called immediately before completing the import to check results.
An onResults callback function called with the results after the user finishes the import.
Called when the user interacts with a tracked control in the importer. See the onUserEvent reference for event payloads.
(Available in version >= 2.0.9)
If provided, determines whether the Dromo importer modal should open. See Controlling the Modal Programmatically.
Sets the
importMetadata for this import when a schemaId is provided. Without a saved schema, pass importMetadata inside settings instead.