Can I change sEmptyTable after the table was initialized?
Can I change sEmptyTable after the table was initialized?
It seems like I should be able to do it. At least, javascript is mutable & I just need to figure out where it's being stored, and change it... and then next time a table gets empty, datatables will consult that value and show it... right?
This discussion has been closed.
Replies
So with the warning out of the way, you can do:
[code]
table.fnSettings().oLanguage.sEmptyTable = "Now empty";
[/code]
Allan
The oSettings object is fully documented here: http://datatables.net/docs/DataTables/1.9.3/DataTable.models.oSettings.html . However not all parameters can be dynamically changed and actioned like that - which is why this isn't really public API.
Allan