Join the Stack Overflow Community
Stack Overflow is a community of 6.8 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

In native Datatables I set the loadingRecords like this:

var language = {
    "loadingRecords": '<img src="~/img/datatable_loading_bar.gif" />'
}

When loading data, it will show datatable_loading_bar.gif

But in angular-datatables, How can I achieve that?

share|improve this question
up vote 1 down vote accepted

Use the withLanguage() method. You are not obligated to pass an entire language struct, simply pass just what you need to change :

.withLanguage({
   loadingRecords: '<img src="~/img/datatable_loading_bar.gif" />'
})
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.