datatables icon indicating copy to clipboard operation
datatables copied to clipboard

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

Open dnaicker86 opened this issue 2 years ago • 3 comments

dnaicker86 avatar Jul 22 '23 08:07 dnaicker86

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

vincjo avatar Jul 24 '23 13:07 vincjo

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.

AngeloAnolin avatar Aug 14 '23 17:08 AngeloAnolin

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.

macellinoss275 avatar Aug 29 '23 02:08 macellinoss275