Pdf, excel,print buttons return array on Chrome in Laravel

Pdf, excel,print buttons return array on Chrome in Laravel

wnswns Posts: 12Questions: 8Answers: 0
edited December 2019 in Free community support

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:

Answers

This discussion has been closed.