I am having trouble setting the value of our datatables default sEmptyTable value like so:
table.fnSettings().oLanguage.sEmptyTable = "There are no customers currently marked “In Dealership” to display";
this is for a certain table. For the rest of the tables in our jquery.dataTables.js file we have this set as the default:
"sEmptyTable": "No data available in table",
which is what shows still. Is there a way to over write the default with a new one for a particular table?
I am having trouble setting the value of our datatables default sEmptyTable value like so:
table.fnSettings().oLanguage.sEmptyTable = "There are no customers currently marked “In Dealership” to display";
this is for a certain table. For the rest of the tables in our jquery.dataTables.js file we have this set as the default:
"sEmptyTable": "No data available in table",
which is what shows still. Is there a way to over write the default with a new one for a particular table?
Share Improve this question asked Jun 5, 2013 at 22:53 FairyQueenFairyQueen 2,3738 gold badges38 silver badges58 bronze badges1 Answer
Reset to default 8yes, you can override the internationalisation active, did you tried this?
$(document).ready(function(){
$('#mytable').dataTable({
"oLanguage": {
"sEmptyTable": "Overriding value ..."
}
});
});
for further details check here