react-data-export icon indicating copy to clipboard operation
react-data-export copied to clipboard

Title/header for tables in case of multiple data sets

Open tajveer-nijjar opened this issue 6 years ago • 6 comments

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 :).

tajveer-nijjar avatar Oct 24 '18 08:10 tajveer-nijjar

@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.

securedeveloper avatar Oct 24 '18 12:10 securedeveloper

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

Thanks

uditdubey avatar Jan 02 '19 10:01 uditdubey

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 :).

piliped avatar Feb 10 '19 07:02 piliped

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

MonsterDuang avatar Jul 19 '19 09:07 MonsterDuang

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

dbriganty avatar Nov 04 '21 00:11 dbriganty

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'},
    ],
 },
]

sivaaks avatar Oct 25 '22 11:10 sivaaks