First Time Configuration & Specific Table Queries
First Time Configuration & Specific Table Queries
Searching for the best way to sort my tables, I came across DataTables and was instantly sold by the table shown on their landing page, in which you can click to show additional details per name.
This is of high interest as one of the reasons I wish to use this system is that each row I would have as a summary and within the details defined to that person.
Questions
- What is the recommended package download for someone who uses jQuery.3.3.1 without Bootstrap?
- Where can I find the DataTable on the landing page within the demos to see minimal code required?
- Is there a "Go To Page" function available, eg; used within a ranking system, go to users rank?
- Is it possible to have, within one table:
- Main Table (entire scope) scrollable.
- Click to show details on a user basis, inner table also scrollable
Thank you for any help in getting started prior!
Best Regards,
Tim
This question has an accepted answers - jump to answer
Answers
The easiest way to get Datatables and any associated extensions is to use the Download Builder. Link is also on the left sidebar.
Click the Examples link on the left side of the page.
If I understand your question correctly you would need to write the code to jump to a particular page based on a data search. Using the row().show() might help.
You can enable the
scrollY
option. There is an example on the examples page.The examples page has a Child rows (show extra / detailed information) which gives a basic example of showing details. I haven't fully tested this but have created the child row as a Datatable in which you could enable scrolling.
Kevin
Thank you very much for your response Kevin!
The download creator is why I asked what is the recommended as there are so many extensions, configurations and whatnot.
The Child rows (show extra / detailed information) is extremely helpful!
Best Regards,
Tim
For just the basic Datatables (to cover the above) you can just take the defaults of Datatables styling and Datatables package. All the examples, except the Styling section, should work with just these options. Plus if you want to use the
rows().show()
plugin you will need to download from its pluging page.Kevin