JSFiddle - React, Tailwind, and code Playground
JavaScript
$(document).ready(function() {
$('#example').dataTable( {
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "scripts/processing.php",
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
{
'sExtends' : 'copy',
"mColumns": [ 0, 1, 2, 3, 4 ]
},
{
'sExtends' : 'csv',
"mColumns": [ 0, 1, 2, 3, 4 ]
},
{
'sExtends' : 'xls',
"mColumns": [ 0, 1, 2, 3, 4 ]
},
{
'sExtends' : 'pdf',
"mColumns": [ 0, 1, 2, 3, 4 ]
},
{
'sExtends' : 'print',
"mColumns": [ 0, 1, 2, 3, 4 ]
},
],
"sSwfPath": "swf/copy_csv_xls_pdf.swf"
},
"aoColumnDefs": [ {
"aTargets": [ 1 ],
"mData": row[1], "," row[2],
"mRender": function ( data, type, full ) {
return 'GOOGLE MAPS LINK'+data+'GOOGLE MAPS LINK END">View</a>';
}
}],
"oScroller": {
"loadingIndicator": true
}
} );
} );