Reposition AJAX processing spinner

Reposition AJAX processing spinner

bbrindzabbrindza Posts: 299Questions: 68Answers: 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,342Questions: 35Answers: 394
    Answer ✓

    I have this in my CSS:

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

    There may be better ways.

  • bbrindzabbrindza Posts: 299Questions: 68Answers: 1

    Works as I would expect. Thank you tangerine.

  • rf1234rf1234 Posts: 2,801Questions: 85Answers: 406

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

Sign In or Register to comment.