Button in DataTables
Button in DataTables
raspoteen
Posts: 16Questions: 8Answers: 0
Hi, I want to create button in DataTables like the image bellow, how can I do that ?
This discussion has been closed.
Answers
https://editor.datatables.net/examples/simple/inTableControls
See the "Edit / Delete" column. Replace those buttons with yours and it should work.
@rf1234 and how to add URL to the button ?
Here is an example from my own coding. Two columns that contain links for editor instances and file urls:
The two functions called to render the URLs:
See also the
columns.render
documentation which has an example of creating a link.Allan
I found what I was searching for HERE:
https://datatables.net/reference/option/columns.defaultContent