I want to use Datatables with div structure instead of tables. the purpose is to meet design requirements. is there any possible way or any alternative for that?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
Sure you can! I think what you're looking for is manipulating the dom object of Datatables!
A simple example of adding some divs to the table ->
This will give you wrapper divs around table content, filters and the whole table. You can learn more by reading the official documentation from their website.
Here's a link to the documentation ->https://datatables.net/reference/option/dom
No you will not be able to do this... The core of Datatables will only work on table elements and child thead tbody tfooter tr td th elements... You will need to write your own pagination code to handle your div cards or download another plugin... jquery Datatables will not support that.
here is a good one? This even looks like jquery datatables pagination. https://esimakin.github.io/twbs-pagination/#demo