Hello
I want to hide footer info in case of empty data.
I have used this.
var nNodes = oTable.fnGetNodes();
if($(nNodes).filter('tr').length == 1){
$('.dataTables_info').hide();
}
But it not the best way. So How can I uses bInfo false in case of empty data
Answers
It might not be the best way, but it is probably the only way at this time. You could use
rows( { page: 'current' } ).any()
to check if there are any rows, rather than the legacy API, but that's about it.Allan
Hi Allan,
Thanks for response. Can you any example How can I use this code.
Any working example.
Happy to provide working examples under the priority support options. In this case, it is just an API call - see
rows()
andany()
for details about the methods I used above.Allan