I have this datatable issue where I am not able to export second row of footer in excel. below is the snippet. when I export footer 1 is there in the sheet but footer 2 is not.
$(document).ready( function () {
$('#table').DataTable({
dom: 'Bfrtip',
buttons: [
{ extend: 'excelHtml5', footer: true },
]
});
} );
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="//cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>
<script src="//cdn.datatables.net/buttons/1.6.1/js/dataTables.buttons.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="//cdn.datatables.net/buttons/1.6.1/js/buttons.html5.min.js"></script>
<link href="//cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css" rel="stylesheet"/>
<table id="table">
<thead>
<tr>
<th>Header</th>
<th>Header</th>
<th>Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>body</td>
<td>body</td>
<td>body</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Footer 1</th>
<th>Footer 1</th>
<th>Footer 1</th>
</tr>
<tr>
<th>Footer 2</th>
<th>Footer 2</th>
<th>Footer 2</th>
</tr>
</tfoot>
</table>