Official plug-in produces incorrect code
Official plug-in produces incorrect code
RyanWilliams
Posts: 1Questions: 0Answers: 0
Hi guys,
I just tried to use the 'Navigation with text input' pagination plug-in which allows users to type a page number in rather than clicking on page numbers — useful when we have, say, six million rows like I'm dealing with right now.
Unfortunately the plug-in seems to produce incorrect code for the new UI elements. The buttons for first/last/next/prev etc are all unstyled, partly due to using SPANs instead of As (like in an old DataTables version I believe) and partly because of various classes not being used.
I can resolve this myself and will probably have to build a custom pagination widget anyway as we need both clickable page numbers and jumping. Just reporting it for the greater good.
Plug-in was found here:
https://datatables.net/plug-ins/pagination
I just tried to use the 'Navigation with text input' pagination plug-in which allows users to type a page number in rather than clicking on page numbers — useful when we have, say, six million rows like I'm dealing with right now.
Unfortunately the plug-in seems to produce incorrect code for the new UI elements. The buttons for first/last/next/prev etc are all unstyled, partly due to using SPANs instead of As (like in an old DataTables version I believe) and partly because of various classes not being used.
I can resolve this myself and will probably have to build a custom pagination widget anyway as we need both clickable page numbers and jumping. Just reporting it for the greater good.
Plug-in was found here:
https://datatables.net/plug-ins/pagination
This discussion has been closed.
Replies
All of the paging plug-ins will get a bit of an update for v1.10 soon anyway (although it is backwards compatible).
Allan