Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81803

Clear [loadingRecords] message when exception happen

$
0
0

Hi everyone,

Currently I'm customizing the error message that pops up when some exception happen in the errorMode extension as code below:

$.fn.dataTable.ext.errMode = function (settings, helpPage, message) {
    Message.failMessage("My customized error message...");
};

But there is one thing I also would like to customize.
When loading data and an exception happen, the dataTable will show whatever is been set here

language: {
     loadingRecords: "Please wait - loading..."
}

and the dataTable keeps showing this message even after clicking on the popup.

My question is, how can I clean this message or give another message when an exception happen?

is there such a property like

language: {
     loadingRecordsError: "Sorry! Error loading data."
}

Thank you very much in advance guys!

Regards,
Alex


Viewing all articles
Browse latest Browse all 81803

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>