omines / datatables-bundle

DataTables bundle for Symfony
https://omines.github.io/datatables-bundle/
MIT License
251 stars 113 forks source link

How to display a new datatable with Ajax ? #311

Closed MelodyR closed 8 months ago

MelodyR commented 10 months ago

Hi, sorry in advance, I may be kind of lost or trying to do something impossible or just the wrong way.

Ok I'm used to render datatables with this great bundle. But I have a complex view where users can set filters and create their own table result. And I would like this tables to be displayed using Ajax calls.

What is the best way to do that ?

I am currently thinking that great thing would be to :

But to make it work, I would need a javascript way to write {{ datatable_settings(mydatatable) }} in order to be able to use my new datatable sent in a javascript variable. Does it exist ?

Can I even use that bundle to do that ? Or should I use directly the server-side processing explained in datatables documentation ?

Any clue that could make me in the good direction would be a big relief 🙏

github-actions[bot] commented 8 months ago

Stale issue message