Datatables sInfo text change with empty table

Well, I know that I can change the text in general as such:

"oLanguage": { "sInfo": 'Showing _END_ Sources.', "sEmptyTable": "No Sources found currently, please add at least one.", } 

The sInfo property changes the default behavior and works fine. However, when the table is empty, sInfo changes to.

Showing 0 to 0 of 0 entries

Which is not desirable, I would like to receive a similar message with my sEmptyTable property, but specific to sInfo, from which its change is not when it does not reach the lines. I read through the API, and I still cannot find the links for this, and I wonder if anyone else knows the right way. Because the only way I can think of is to do it manually and outside of the data APIs, and I'm sure it will just give me some other conflict.

+4
source share
1 answer

The datatables also have oLanguage.sInfoEmpty, which will give you what you need.

http://datatables.net/ref

 "oLanguage": { "sInfo": 'Showing _END_ Sources.', "sInfoEmpty": 'No entries to show', "sEmptyTable": "No Sources found currently, please add at least one.", } 
+11
source

All Articles