show/hide buttons in rows depending on the value of a column
show/hide buttons in rows depending on the value of a column
mbonoa
Posts: 2Questions: 1Answers: 0
in DataTables
Hi,
I have a datatable with the data plus two buttons for row (edit and delete).
One of the columns is a date and if that date is different from current date I don't
want to show these two buttons.
I have added those buttons with defaultContent.
Thanks.
This question has an accepted answers - jump to answer
Answers
Use
columns.render
instead then you can use if statements to determine which buttons to show.Kevin
Thanks Kevin.
I've solved it.