Hi guys
in yii 1.0 there was a nice function beforeAjaxUpdate
and afterAjaxUpdate
so that we can easily
configure loading image
I cant seem to find that function in yii 2.0
and i am not sure how to achieve that functionality in yii 2.0
let me know if you guys can help
all i want to do is set loading animator in gridview
here is my code
<?php Pjax::begin(['id' => 'event-grid', 'timeout' => false , ]); ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'rowOptions'=> function($modal, $key, $index, $grid) {
if ($modal->is_active == '0') {
return ['class' => 'danger action-tr' ];
} else
return ['class' => 'success action-tr'];
},
'columns' => [
[
'attribute' => 'interest_id',
'label' => 'Event Category',
'value' => 'interest.area_intrest',
],
'title',
'description:html',
[
'class' => 'yii\grid\ActionColumn',
'template' => '{checkin/index} {view} {update} {delete} ',
'contentOptions' => ['class'=>'action-td'],
'buttons' => [
'checkin/index' => function ($url) {
return Html::a('<span data-pjax=false class="glyphicon glyphicon-user"></span>', $url,['data-pjax' => true]);
},
]
],
]
]);
?>
<?php Pjax::end(); ?>