jabbon
(Alexx Nahh)
1
<?php echo ListView::widget([
'dataProvider' => $negocios,
'summary' => "",
'itemOptions' => ['class' => 'item col-md-3'],
'itemView' => '_negocio',
]);?>
How I can update the ListView with ajax like CListView in Yii 1.1?
$.fn.yiiListView.update('clv-board-');
Hello jabbon,
You have to set listview id.
<?php echo ListView::widget([
'dataProvider' => $negocios,
'id' => "clv-board-",
'summary' => "",
'itemOptions' => ['class' => 'item col-md-3'],
'itemView' => '_negocio',
]);?>
Thanks
jabbon
(Alexx Nahh)
3
In Yii2 this funcion
$.fn.yiiListView.update('clv-board-');
doesn’t exists beacuse the use of pjax, I would like to see an example of how doing the same job in Yii2 with pjax Thanks