Create data and export to use in other page easily.Support three types of import 1. Excel/CSV 2. Api 3. Paste data directly
imcData
Fetch, upload data easily
Install
# Githubgit clone https://github.com/ykn9080/imcTablenpm start //local initdocker-compose up //using docker# npmnpm install imcdata
Usage
import Data from "imcData"# send 'authObj' i.e. list and setting about data and return 'onChange'<Data authObj={data} onChange={onChange} /># onChange 'return' has 'dtlist' (data list made of json object) and 'dtsetting' ie composed ofvarious data form setting (excel, cut & paste, or api)# receive return data from parent page...const onChange=(return)=>{//return={dtlist:[...], dtsetting={}}}# 'return' example{ dtlist: [{OrderDate: 41883, Region: 'Central', Rep: 'Smith', Item: 'Desk', Units: 2},{OrderDate: 42172, Region: 'Central', Rep: 'Kivell', Item: 'Desk', Units: 5},{OrderDate: 42257, Region: 'Central', Rep: 'Gill', Item: 'Penc', Units:3}],dtsetting: {dtype: 'paste'}}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.