我无法设置数据表默认sEmptyTable值的值,如下所示:
table.fnSettings().oLanguage.sEmptyTable = "There are no customers currently marked “In Dealership” to display";
这是针对某个表格的。对于我们的jquery.dataTables.js文件中的其余表,我们将此设置为默认值:
"sEmptyTable": "No data available in table",
这仍然是显示的。有没有办法用特定表格覆盖默认值?
答案 0 :(得分:8)
是的,你可以覆盖国际化活动,你试过这个吗?
$(document).ready(function(){
$('#mytable').dataTable({
"oLanguage": {
"sEmptyTable": "Overriding value ..."
}
});
});
有关详细信息,请查看here