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:
you need to add the template propiety ('template'=>'{update} {delete}') to the column arry where you put the options
'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'id', 'otherfield' ['class' => 'yii\grid\ActionColumn','template'=>'{update} {delete}'],