how to add a top left table caption
how to add a top left table caption
My client would like to tell his customers that the datatable (which is too wide to fit on a small screen) can be x-scrolled because this is not necessarily obvious to everyone. So I need to add a caption to a datatable - it should be positioned on top of the table, ideally top left, directly right of the pagination lengthMenu dropdown. I have tried to add such a caption but so far, it insists on showing up above the center of the table, and with a broad table, it is outside of the viewport on small screens. Any ideas?
This question has an accepted answers - jump to answer
Answers
Try using the Custom toolbar if you want the message displayed within the Datatables elements.
Kevin