securedeveloper / react-data-export

Export dataset in react.
https://securedeveloper.github.io/react-data-export/
MIT License
179 stars 194 forks source link

Title/header for tables in case of multiple data sets #87

Open tajveer-nijjar opened 5 years ago

tajveer-nijjar commented 5 years ago

Hi,

(This is my first time raising an issue on github. So forgive for my newbieness) (I dont know if this should be an issue or a feature request.)

In case of multiple data sets, is there any way that we could have titles/headers for the individual tables? As an example:

image

Thanks in advance :).

securedeveloper commented 5 years ago

@tajveer-nijjar with current version it's possible because you have the possibility to style each cell by yourself, just take them as a normal cell and style them as header cells, should be an easy going.

uditdubey commented 5 years ago

Hello @securedeveloper , can you show with example how can we implement this?

Thanks

piliped commented 5 years ago

Hi,

(This is my first time raising an issue on github. So forgive for my newbieness) (I dont know if this should be an issue or a feature request.)

In case of multiple data sets, is there any way that we could have titles/headers for the individual tables? As an example:

image

Thanks in advance :).

Hi,

(This is my first time raising an issue on github. So forgive for my newbieness) (I dont know if this should be an issue or a feature request.)

In case of multiple data sets, is there any way that we could have titles/headers for the individual tables? As an example:

image

Thanks in advance :).

MonsterDuang commented 5 years ago

Hello, I also encountered a question to add a table title. Have you solved it?

dbriganty commented 2 years ago

Hi, still don't have the answer to this question? Add columns is easy with tag ExcelColumn but the rows not so much

sivaaks commented 1 year ago

Use a dataset and create a column with the row title and then leave the data as an empty array

const multiDataSet=[
  {
     columns: [
         {title: 'Your title'},
     ],
    data: [],
  },
 {
    columns: [
        {title: 'Table title1'},
       {title: 'Table title2'},
    ],
    data: [
      {value: 'Value 1'},
      {value: 'Value 2'},
    ],
 },
]