Is there a way that I could edit a row on a detailed view like in gridview?
In gridview there’s a rowOptions property, but in detailed view there’s none.
I was going to add a bootstrap alert on a specific row in view php which is the request_status, I already tried doing this:
<?= DetailView::widget([
'model' => $model,
'attributes' => function($model)
{
if($model->request_status == 'On Going!')
{
return ['class' => 'info'];
}
},
'attributes' => [
'id',
'request_title',
'request_details:ntext',
'room_no',
'assigned_to',
'date',
'request_status',
],
]) ?>
But it doesn’t work, is there any other way that I could do that?