I am trying to add button in yii2 detail view widget. Previously I done with Yii2 grid view widget. I can’t able to do the same in detail view.
My code below,
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id',
'Name',
'Email:email',
'Phone',
'server_status',
[
'label'=>'Server',
'value'=>"<button>Server Started</button>",
],
],
]) ?>
Please kindly help to solve this issue.