I have successfully added _DELETE_:Delete to the columns list, the link appears in all rows of the appropriate column, and performs the appropriate row delete when clicked.
I would like to selectively either disable the _DELETE_ on a row by row basis, dependent upon a value in the $row variable as used in the PHP Functions section. I have successfully used PHP Functions to re-format a date for display:
cruise.reg_date:$date = new DateTime($cell); return $date->format('M j');
If I try to do the same with _DELETE_ but it does not work.
I tried something like: _DELETE_:if( some test on $row[val] ) {return $cell;} else {return '';} but this does not seem to work.
What is the appropriate way to selectively display an active delete link in a row and hide it in others?
I would like to selectively either disable the _DELETE_ on a row by row basis, dependent upon a value in the $row variable as used in the PHP Functions section. I have successfully used PHP Functions to re-format a date for display:
cruise.reg_date:$date = new DateTime($cell); return $date->format('M j');
If I try to do the same with _DELETE_ but it does not work.
I tried something like: _DELETE_:if( some test on $row[val] ) {return $cell;} else {return '';} but this does not seem to work.
What is the appropriate way to selectively display an active delete link in a row and hide it in others?