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 :
get my datatable with Ajax
destroy the current datatable
and then init the new datatable with the mytable.initDatatables({{ datatable_settings(mydatatable) }})
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 🙏
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 :
mytable.initDatatables({{ datatable_settings(mydatatable) }})
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 🙏