Changing location of "Processing" message

Changing location of "Processing" message

charlesgodwincharlesgodwin Posts: 4Questions: 1Answers: 0

This option https://datatables.net/reference/option/language.processing allows a message to display when a serverside request is being processed. Unfortunately the text is displayed in the middle of the table height. So if the table is showing 100 rows, this message is a long way down the table and is not always visible to the user/viewer.

Can an option or a CSS style be set so it shows at the top of the table where it may be more visible?

Answers

  • tangerinetangerine Posts: 3,144Questions: 27Answers: 366
    edited October 15

    FWIW I use this:

    .dataTables_wrapper .dataTables_processing {
    position: absolute; 
    top: 15% !important; 
      background: #FFFFCC;
      border: 1px solid black;
      border-radius: 3px;
      font-weight: bold;
    }
    

    Adjust the settings as required, particularly "top".

  • charlesgodwincharlesgodwin Posts: 4Questions: 1Answers: 0

    That works for me. Thanks.

Sign In or Register to comment.