1

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?

1 Answer 1

1

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" />'
})
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.