Hi, explain please, how enable ajax pagination in widget ListView. I have tried to do so:
use yii\widgets\ListView;
use yii\widgets\Pjax;
Pjax::begin(); //['timeout'=>700] ['enablePushState'=>false]
echo ListView::widget([
'id' => 'sdfsd',
'dataProvider' => $dataProvider,
'itemView' => '_news',
'layout' => '
<div class="cat_title_block">News{pager}</div>
<div>
{items}
<div class="clr"></div>
</div>
',
'pager' => [
'maxButtonCount' => 5,
'prevPageLabel' => '<',
'nextPageLabel' => '>',
'firstPageLabel' => '<<',
'lastPageLabel' => '>>',
],
]);
Pjax::end();
but it’s not work.