最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to set DataTables default sEmptyTable value? - Stack Overflow

programmeradmin7浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 8

yes, you can override the internationalisation active, did you tried this?

$(document).ready(function(){
    $('#mytable').dataTable({
      "oLanguage": {
        "sEmptyTable": "Overriding value ..."
      }
    });
});

for further details check here

发布评论

评论列表(0)

  1. 暂无评论