processing vs initial processing positioning

processing vs initial processing positioning

TronikTronik Posts: 120Questions: 27Answers: 1

Hi,

I have som trouble with getting the processing dialogue positioned at the top of the table, it is placed in the vertical middle of the table.
I have searched multiple threads and haven't got it to work.

Altough the initial loading (processing) is placed at the top of the table, I believe because the table doesn't contain any data yet.

I have also tried setting 'style' for my div element below, z index and so on, but nothing works.

"language": {
        "processing": "<div><b>LOADING</b></div>"
        },
"processing": true,

How can I get this at the top of the table when calling table.ajax.url( "json.php").load();

Answers

  • TronikTronik Posts: 120Questions: 27Answers: 1

    What I would really want is the spinner/loading text at a completely other location on the page than the Datatables.

  • allanallan Posts: 61,822Questions: 1Answers: 10,129 Site admin

    It sounds like a CSS issue. This is the default styling that DataTables uses.

    If you want it at the top you could just use a custom style of top: 0; for that element.

    Allan

  • TronikTronik Posts: 120Questions: 27Answers: 1

    Thanks for the response.
    Is it possible to place it at a position outside of datatables?

  • allanallan Posts: 61,822Questions: 1Answers: 10,129 Site admin

    Sort of. You can use jQuery after initialisation to move the elements around and DataTables will retain its reference to them.

    Allan

This discussion has been closed.