$grid addColumn(Button) with condition

can add more condition like
$grid->addColumn(‘Button’,‘Add’,[‘icon’ => ‘plus’,‘col’=>‘status’,‘skip’=>‘success’]);

// Grid Advance -> format_button()
if(isset($this->columns[$field][‘col’]) && isset($this->columns[$field][‘skip’])){
if($this->current_row[$this->columns[$field][‘col’]] == $this->columns[$field][‘skip’])
$this->current_row_html[$field] = ‘’;
}

It’s not perfect but can work on my solutions

I’d prefer something like this:

$this->addColumn(function(){
    return '<button>....</button>';
}, 'Add');

Then any type of logic is possible instead of making format_button even more complex.

Thank for this solution