Datatables vue slot does not change when reloading table

Datatables vue slot does not change when reloading table

heymerridewheymerridew Posts: 4Questions: 1Answers: 0

Hi!

I am using the datatables.net-vue3 component but when I reload the table with ajax the slot is not updated, only the remaining data. I am not using server-side processing and the versions I use are:

"dependencies": {
  "datatables.net-buttons-dt": "^3.0.2",
  "datatables.net-dt": "^2.0.8",
  "datatables.net-searchpanes-dt": "^2.3.0",
  "datatables.net-select-dt": "^2.0.3",
  "datatables.net-vue3": "^3.0.1"
}

In console it doesn't show me any error.

This is my stackblitz , in stackblitz I use a json to simulate the update, but I do all the reloading with:

datatable.value.dt.ajax.reload();

I hope you can help me, thanks.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,397Questions: 1Answers: 10,451 Site admin

    Interesting. Thanks for posting this - I can indeed see the issue and I believe I know what is causing it. I'm travelling this week, and not setup to make a new release of the Vue component for DataTables, but I will do so on my return to my office next week, with the fix.

    Allan

  • allanallan Posts: 63,397Questions: 1Answers: 10,451 Site admin
    Answer ✓

    Fix committed here and I've published 3.0.2 of the datatables.net-vue3 package to carry the fix.

    Allan

  • heymerridewheymerridew Posts: 4Questions: 1Answers: 0

    Hello Allan, I tested updating the package to the new version and it works correctly.

    Thank you very much for the help.

  • allanallan Posts: 63,397Questions: 1Answers: 10,451 Site admin

    Super - thanks for letting me know!

    Allan

Sign In or Register to comment.