oLanguage.sInfo not working when there is no data in the table
oLanguage.sInfo not working when there is no data in the table
Hello,
I found if there is no data in the table, DataTables won't take value from oLanguage.sInfo, use the string : "Showing _START_ to _END_ of _TOTAL_ entries" wrote in code instead.
By the way, oLanguage.sZeroRecords rendered correctly.
Is this a bug or did I lost something?
Thanks.
[code]
$(function(){
$("#example").dataTable({
"oLanguage": {
"sZeroRecords":"沒有任何資料。",
"sInfo":"目前顯示 _START_ 到 _END_ (共 _TOTAL_ 筆)",
"sLoadingRecords":"下載資料中,請稍候……"
},
"iDisplayLength": 20,
"bFilter": false,
"bLengthChange": false,
"sDom": "t<'field'<'span9'i><''p>>",
"sPaginationType": "bootstrap"
});
})
[/code]
I found if there is no data in the table, DataTables won't take value from oLanguage.sInfo, use the string : "Showing _START_ to _END_ of _TOTAL_ entries" wrote in code instead.
By the way, oLanguage.sZeroRecords rendered correctly.
Is this a bug or did I lost something?
Thanks.
[code]
$(function(){
$("#example").dataTable({
"oLanguage": {
"sZeroRecords":"沒有任何資料。",
"sInfo":"目前顯示 _START_ 到 _END_ (共 _TOTAL_ 筆)",
"sLoadingRecords":"下載資料中,請稍候……"
},
"iDisplayLength": 20,
"bFilter": false,
"bLengthChange": false,
"sDom": "t<'field'<'span9'i><''p>>",
"sPaginationType": "bootstrap"
});
})
[/code]
This discussion has been closed.