processing vs initial processing positioning
processing vs initial processing positioning
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
What I would really want is the spinner/loading text at a completely other location on the page than the Datatables.
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
Thanks for the response.
Is it possible to place it at a position outside of datatables?
Sort of. You can use jQuery after initialisation to move the elements around and DataTables will retain its reference to them.
Allan