Reposition AJAX processing spinner

Reposition AJAX processing spinner

bbrindzabbrindza Posts: 316Questions: 73Answers: 1

I have incorporate a fontawesome spinner when loading AJAX data. It works fine, however I have been trying to figure out how to move it higher up in the table. Any thoughts?

  language: {
                processing:  '<i class="fa fa-sync fa-spin fa-2x fa-fw"></i><span>  Loading Data...</span>' 
                  } ,

This question has an accepted answers - jump to answer

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    Answer ✓

    I have this in my CSS:

    .dataTables_wrapper .dataTables_processing {
    position: absolute;
    top: 15% !important;
    ...
    ...
    ...

    There may be better ways.

  • bbrindzabbrindza Posts: 316Questions: 73Answers: 1

    Works as I would expect. Thank you tangerine.

  • rf1234rf1234 Posts: 2,991Questions: 87Answers: 421

    That's precisely what I needed, too! Thanks tangerine!

Sign In or Register to comment.