react-datasheet icon indicating copy to clipboard operation
react-datasheet copied to clipboard

Feature Request: Export as Excel/CSV

Open maifeeulasad opened this issue 3 years ago • 2 comments

I used this library for my project, and I must say it's an excellent library.

I went through all the examples provided in the official demo: https://nadbm.github.io/react-datasheet/. But couldn't find any way to export data as an Excel document or even CSV. I think it would be a great addition.

And I'm available to develop this feature.

maifeeulasad avatar May 07 '22 13:05 maifeeulasad

Hey @maifeeulasad, since this library does not maintain the data, I do not believe it makes sense for it to export the data.

Basically:

const data = [...]
render () {
     <ReactDatasheet data={data} /> <Export data={data} />
}

The export could be seperate component that handles the export

nadbm avatar May 23 '22 21:05 nadbm

It should be great if the library is having a action bar component in which it will be having all the options similar to the option in any excel sheets. image

  1. Can add config file to configure the options
  2. Can add multiple options like export to csv,json,etc

sharunspi avatar Aug 07 '22 08:08 sharunspi