Why isn't oLanguage.sInfo working for me?
Why isn't oLanguage.sInfo working for me?
orange_roughy
Posts: 19Questions: 0Answers: 0
Hi,
[code]
var dt = $(id).dataTable(
{ "aoColumnDefs": [{"aTargets": [0], "bSortable":true},{"aTargets": [1], "bSortable":true},{"aTargets": [2], "bSortable":true},{"aTargets": [3], "bSortable":true},{"aTargets": [4], "bSortable":true},{"aTargets": [5], "bSortable":true}],
"bScrollCollapse": true,
"sScrollY": "200px",
"sDom":"lrtip", // removes global search box per http://datatables.net/usage/options#sDom
"bSortClasses": false,
"iDisplayLength": 20,
"bScrollInfinite": true,
"oLanguage.sEmptyTable": "No data",
"oLanguage.sInfoEmpty": "No data",
"oLanguage.sInfo": "hey",
"bDestroy": true, // todo: optimize this. we don't need to destroy.
"aaSorting": [[1, "asc" ]]});
[/code]
I've specified oLanguage.sInfo but it's not taking effect: I still see "Showing 1 to 2 of 2 entries". What am I doing wrong?
thanks,
orange roughy
[code]
var dt = $(id).dataTable(
{ "aoColumnDefs": [{"aTargets": [0], "bSortable":true},{"aTargets": [1], "bSortable":true},{"aTargets": [2], "bSortable":true},{"aTargets": [3], "bSortable":true},{"aTargets": [4], "bSortable":true},{"aTargets": [5], "bSortable":true}],
"bScrollCollapse": true,
"sScrollY": "200px",
"sDom":"lrtip", // removes global search box per http://datatables.net/usage/options#sDom
"bSortClasses": false,
"iDisplayLength": 20,
"bScrollInfinite": true,
"oLanguage.sEmptyTable": "No data",
"oLanguage.sInfoEmpty": "No data",
"oLanguage.sInfo": "hey",
"bDestroy": true, // todo: optimize this. we don't need to destroy.
"aaSorting": [[1, "asc" ]]});
[/code]
I've specified oLanguage.sInfo but it's not taking effect: I still see "Showing 1 to 2 of 2 entries". What am I doing wrong?
thanks,
orange roughy
This discussion has been closed.
Replies
Allan