admin管理员组文章数量:1326317
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
本文标签: javascriptHow to set DataTables default sEmptyTable valueStack Overflow
版权声明:本文标题:javascript - How to set DataTables default sEmptyTable value? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742205386a2432719.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论