DataTable Loading Message
DataTable Loading Message
knetadmin
Posts: 47Questions: 1Answers: 0
in DataTables
How to Disable Loading.. Message
This discussion has been closed.
Replies
Use the
language.loadingRecords
option and set it to be a single space (or an empty string if you use the nightly version of DataTables - there is a bug in the current release whereby there must be one or more characters...).Allan
Hi Allan,
i am trying to change loading message but not effect
Can you show me the code you are using to change the loading message please? The example of:
should work well.
Allan
i added option to dtOptions
.withOption('language',{
loadingRecords: "Please wait - loading..."
})
to change loading message
you can test in the same URL
'language': ( colon not comma) ?
In this case yes - @knetadmin is using The Angular-DataTables integration libraries which uses its own configuration functions rather than objects - abstracting out the DataTables configuration.
From the Angular DataTables documentation you want to use the
withLanguage
method:for example.
Allan
Hi Allan,
i used it but also displaying default message not mine
Unfortunately the login link from before doesn't show me a DataTable. Could you possibly tell me how I can see the issue please?
Allan
Hi Allan,
thanks for helping i found the solution : https://l-lin.github.io/angular-datatables/#/overrideLoadingTpl
angular.module('showcase', ['datatables']).
factory('DTLoadingTemplate', dtLoadingTemplate);
function dtLoadingTemplate() {
return {
html: '<img src="images/loading.gif">'
};
}
Good to hear you found a solution. I had no idea that the third party library was doing that!
Allan