V
V
Vladislav Sofienko2017-09-03 22:11:43
Yii
Vladislav Sofienko, 2017-09-03 22:11:43

How to hide the text of how many entries are shown in a ListView widget?

ListView and GridView output: "Records shown 1-1 of 1" and then the list itself.
The question is how to hide it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-09-03
@sofvlad

change layout

echo ListView::widget([
    'dataProvider' => $listDataProvider,
    'itemView' => '_list',
    'layout' => "{pager}\n{summary}\n{items}\n{pager}",
]);

in layout you can leave only {items}:
and then there will be only elements
source https://xn--d1acnqm.xn--j1amh/%D0%B7%D0%B0%D0%BF%D...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question