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](https://secure.gravatar.com/avatar/89f076138f67fdaf81880c43473db428/?default=https%3A%2F%2Fvanillicon.com%2F89f076138f67fdaf81880c43473db428_200.png&rating=g&size=120)
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.