Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question