I want to hide Yii2 GridView Action Column buttons on the base of model field status. If status is = 1 then hide view button only. How I can?
Code:
Read
Just add
return $model->status == 1 ? Html::a('View', $url, [ 'title' => Yii::t('app', 'View'), 'class' =>'btn btn-primary btn-xs', ]) : '';