export raw data rather than rendered

export raw data rather than rendered

smerchantsmerchant Posts: 4Questions: 2Answers: 0

Hello, I have a column which I am rendering with some data with html;

"data": "url",
"render": function (data, type, row, meta) {
return '<a href="' + data + '" target="_blank">Read the full text</a>';
 }

But I would like to export the raw data in the url column rather than what is render on the screen. I have tried;
exportOptions: { orthogonal: 'export' }, but it doesn't work. Please could someone help/guide?

Thanks

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,236Questions: 1Answers: 2,598
    Answer ✓

    Hi @smerchant ,

    Yep, you're in the right place. This example here will show you want to do,

    Cheers,

    Colin

This discussion has been closed.