
You can view a live demo here
Install
To get add Dromo to your own project:
npm install --save dromo-uploader-js
Usage
Check out our developer documentation here
<script type="text/javascript">
const fields = [
{
label: "Name",
key: "name"
},
{
label: "Email",
key: "email_address"
}
];
const settings = {
importIdentifier: "Contacts"
};
const user = {
id: "1",
name: "Jane Doe",
email: "jane@dromo.io",
companyId: "Dromo",
companyName: "12345"
}
const dromo = new DromoUploader("LICENSE_KEY", fields, settings, user);
dromo.onResults(function (response) {
return "Done!";
});
</script>
<div id="root">
<button onclick="dromo.open()">Open Dromo</button>
</div>