language did not work after apply dom
language did not work after apply dom
Tim Yim
Posts: 1Questions: 1Answers: 0
Please see the following sample where language.info did not work after apply dom.
Datatables version 1.10.15
$(document).ready(function () {
var myTable = $('#dataTables').DataTable({
responsive: true,
order: [[0, "desc"]],
lengthMenu: [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
pageLength: 100,
select: true,
stateSave: true,
dom: "<'row'<'col-sm-4'B><'col-sm-4 text-center'l><'col-sm-4'f>>" + "<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-5'i><'col-sm-7'p>>",
buttons: [
{
extend: 'copyHtml5',
text: '<i class="fa fa-files-o"></i> Copy',
titleAttr: 'Copy'
},
{
extend: 'csvHtml5',
text: '<i class="fa fa-file-text-o"></i> CSV',
titleAttr: 'CSV'
},
{
text: 'Print',
titleAttr: 'Print',
text: '<i class="fa fa-print"></i> Print',
action: function () {
var myIds = myTable.rows('.selected').ids().count();
alert(myIds + ' row(s) selected');
}
}
],
language: {
"info": "_START_ to _END_ out of _TOTAL_"
},
});
This discussion has been closed.
Answers
That seems to work okay here.
Can you link to a page showing the issue please.
Allan