1.0.4 • Published 5 years ago
custom-csv-importer v1.0.4
Custom CSV Importer
Test the project
Using webpack with reference to folder src/dev.
$ npm install || yarnthen
$ npm start || yarn startInstallation
$ npm i custom-csv-importer || yarn add custom-csv-importerRequired dependencies
styled-components
react-xarrowsHow to use
| Prop | Default value |
|---|---|
| arrows | - A list with all connections between columns. |
| setArrows | () => {} - A function that sets a new connection. |
| defaultCsvTitle | "Default CSV" |
| userCsvTitle | "User CSV" |
| defaultCsv | { column_id: 1, column_name: 'Default Item 1', required: true, }, { column_id: 2, column_name: 'Default Item 2', required: false, } |
| userCsv | { column_id: 1, column_name: 'User Item 1' }, { column_id: 2, column_name: 'User Item 2' } |
| customBox | { border: 1px solid grey; position: relative; padding: 20px 30px; margin: 10px 0; border-radius: 4px; width: 150px; } |
| customText | { text-align: center; } |