I got problem about my button, which allows to export data to .xlsx file. It works good for Edge, Mozilla and Chrome, but if I try Safari on iphone or Macbook it seems that button is just missing and invisible.
I really need help with this, because can't find a proper solution. Data export should fully work on Safari, Mozilla, Edge, Chrome.
Maybe someone faced similar problem? My code:
$(document).ready(function() {
var table = $('#tableOrders').DataTable( {
"bFilter" : true,
"bLengthChange": true,
"paging": true,
"ordering": true,
"order": [[ @if ($user->role=='super_admin') 7 @else 6 @endif, "desc" ]],
"info":true,
dom: 'lBfrtip',
lengthMenu: [
[ 10, 25, 50, -1 ],
[ '10', '25', '50', 'Show all' ]
],
buttons: [
{
extend: 'copyHtml5',
text: '<b>Copy all</b>',
exportOptions: {
columns: [@if($user->role=='super_admin') 0, 1, 2, 3, 4, 5, 6 @else 0, 1, 2, 3, 4 @endif]
}
},
{
extend: 'excelHtml5',
text: 'Export all to <b>Excel</b>',
exportOptions: {
columns: [@if($user->role=='super_admin') 0, 1, 2, 3, 4, 5, 6 @else 0, 1, 2, 3, 4 @endif]
}
},
]
} );
} );