Hi i am trying to export my table in CSV but whenever i try to export it only show the data not in cell tag so i wanna know is there is any way of doing it please help me
Thank You.
{
// key: "id",
text: "S.No.",
className: "id",
align: "left",
sortable: true,
cell:(row, index)=>index+1
},
{
key: "tx_id",
text: "Transaction_id",
className: "transaction_id",
align: "left",
sortable: true,
},
{
key: "email",
text: "Email",
className: "email",
align: "left",
sortable: true,
},
{
key: "amount",
text: "Amount",
className: "amount",
align: "left",
sortable: true,
cell: record => {
return (
<span>
{Math.abs(record.coin_amount)}
</span>
);
}
},
{
key: "coinName",
text: " Cryptocoin",
className: "coinName",
align: "left",
sortable: true,
cell: record => {
return (
<span>
{record.coinName == undefined ?
(this.state.cryptoName):(record.coinName)
}
</span>
);
}
},
// {
// key: "status",
// text: "Status",
// className: "status",
// align: "left",
// sortable: true
// },
{
key: "created",
text: "Date",
className: "date",
align: "left",
sortable: true,
cell: record => {
return (
<Fragment>
{Moment(record.created).format('lll')}
</Fragment>
);
}
},
]````