Custom Loading-Mask in processing

Custom Loading-Mask in processing

piccardpiccard Posts: 4Questions: 2Answers: 1

Hello,
can anyone give me an example, how to integrate another loading-mask (i.e. another jQuery-Plugin) which replaces the normal processing? This is stated in the https://datatables.net/reference/event/processing, but I'm not sure how it is done.
Thank you :smile:

This question has an accepted answers - jump to answer

Answers

  • piccardpiccard Posts: 4Questions: 2Answers: 1
    Answer ✓

    Solution:

    .on('processing.dt', function (e, settings, processing) {
        $('#processingIndicator').css('display', 'none');
             if (processing) {
             $(e.currentTarget).LoadingOverlay("show");
         } else {
             $(e.currentTarget).LoadingOverlay("hide", true);
         }
    })
    
  • allanallan Posts: 62,990Questions: 1Answers: 10,367 Site admin

    Thanks for posting back - that looks good.

    Allan

  • JhoanBorgesJhoanBorges Posts: 3Questions: 1Answers: 0

    piccard Thank's it works

This discussion has been closed.