Pdf, excel,print buttons return array on Chrome in Laravel
Pdf, excel,print buttons return array on Chrome in Laravel
wns
Posts: 12Questions: 8Answers: 0
I tried to save the datatable (yagra) on my system. Firstly, the button doesnt show up. After I put add Js , it show up.
Js added:
<script src="/vendor/datatables/buttons.server-side.js"></script>
However, the results returns to array of my datatable on chrome as below (and button dont function):
{"draw":1,"recordsTotal":11,"recordsFiltered":11,"data":[{"id":"1","Age":"62","Gender":"Male","Country":"India","created_at":null,"updated_at":null},{"id":"2","Age":"16","Gender":"Male","Country":"Australia","created_at":null,"updated_at":null},
Do I miss anything? I just follow this for the button:
This discussion has been closed.
Answers
Solution is here: http://live.datatables.net/cowujoho/5/edit. Case closed!