Button in DataTables
Button in DataTables
![raspoteen](https://secure.gravatar.com/avatar/b12e2ac9b8a20e6bbbf61c0465133a30/?default=https%3A%2F%2Fvanillicon.com%2Fb12e2ac9b8a20e6bbbf61c0465133a30_200.png&rating=g&size=120)
Hi, I want to create button in DataTables like the image bellow, how can I do that ?
This discussion has been closed.
Hi, I want to create button in DataTables like the image bellow, how can I do that ?
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