H
H
hollanditkzn2017-05-29 12:29:58
Yii
hollanditkzn, 2017-05-29 12:29:58

How can I remove the label in the detailView?

I have such a question, in the detailView widget, is it possible to somehow remove the label or maybe the information is shown not horizontally, but vertically. Is this possible or not?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-05-29
@hollanditkzn

use the template property , like so:

echo DetailView::widget([
    'model' => $model,
    'template' => '<tr><td{contentOptions}>{value}</td></tr>'
]);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question