vincjo / datatables

A toolkit for creating datatable components with Svelte
https://vincjo.fr/datatables
MIT License
363 stars 15 forks source link

Question: Is there way to add action buttons to edit delete a row? #49

Closed dnaicker86 closed 4 weeks ago

vincjo commented 11 months ago

There is currently no method or component to edit/delete or create a row.

But it is relevant and will probably be added in a future release

AngeloAnolin commented 10 months ago

This implements the above request.

https://vincjo.fr/datatables/reactivity

Posting the code would be helpful.

The code for the implementation of the function can be found here.

macellinoss275 commented 10 months ago

Is this even needed? This is not even Svelte DataTables problem, isn't it? Pretty sure all you need to do is just create 2 buttons, make back-end functions related to those buttons and that's all. Since Svelte DataTables could automatically add or remove the row (or data) anyway after those functions got executed. Because that's what I've always do.