Hi everyone…
How to create Button for GridView Column Attribute Value…
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'status_id', // Here if status_id value is 0/1 for Blocked or Active
['class' => 'yii\grid\ActionColumn']
]
]);
?>
For status_id attribute I need to dynamic button associative with an action to Block or Unblock…
How to create it… Thanks in advance…