download excel in datatable with only defined fields

download excel in datatable with only defined fields

rrzavaletarrzavaleta Posts: 78Questions: 52Answers: 2

Hi, I have a problem when clicking on responsive tables.
I usually use

"buttons": [
{
"extend": 'excel',
"text": 'Exportar a Excel',
"filename": fileName
}

I usually use the following event to click on buttons that are within datatable.

But when the table becomes responsive and the button is below the main line and it is no longer possible to run the previous event.

How can I execute that button when it is in resposive?

Answers

This discussion has been closed.