Add custom buttons in react datatable
Add custom buttons in react datatable
vrundavakil
Posts: 1Questions: 1Answers: 0
In react.js ,how can I add Edit Delete action buttons and perform any event?
Answers
Hi @vrundavakil ,
This thread should help, it's asking the same thing.
Cheers,
Colin
hi @allan i have a query how to add edit and delet button in eachy row and on click of them i want to get the data from that specific row
i am trying to implement datatables in react js kinldy give me any solution
Is this using Editor as in this example?
To get the data, in the click handler, you should just be to use
table.row(this).data()
- see here,Colin
I have post a question here finally i get the answer so i decided to share that for others
in my columns to show edit button i used below code for React Js
And for clicking on edit button i simply changing the routes
here example is the id of table
I hope it will be helpfull for Others
can someone help me to implement Shoaib-solution in React?
Thank you so much.