Hi, I do this with a callback in the relevant column.
So the button is not in the action column, but yo have full access on all data. in my case the email button is only shown if an email is there:
$crud->callbackColumn('email', function ($value, $row) {
$email = $value;
…