Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

StarGrid/custom-csv-importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom CSV Importer

Test the project

Using webpack with reference to folder src/dev.

$ npm install || yarn

then

$ npm start || yarn start

Installation

$ npm i custom-csv-importer || yarn add custom-csv-importer

Required dependencies

styled-components
react-xarrows

How 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; }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published