Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php yiiwidgetsPjax::begin(['id' => 'checkin-grid',
- 'timeout' => false,
- 'enablePushState' => false,
- ]); ?>
- <?= GridView::widget([
- 'id'=>'checkin-table',
- 'dataProvider' => $dataProvider,
- 'filterModel' => $searchModel,
- 'showOnEmpty'=>true,
- 'columns' => [
- [
- 'class' => 'yiigridCheckboxColumn',
- 'multiple'=>true,
- ],
- [
- 'attribute' => 'fullName',
- 'label' => 'Name',
- 'value' => 'users.fullname',
- ],
- [
- 'attribute' => 'gender',
- 'label' => 'Gender',
- 'value' => 'users.gender',
- ],
- [
- 'attribute' => 'age',
- 'label' => 'Age',
- 'value' => 'users.age',
- 'filter'=> Slider::widget([
- 'name'=>'ageRange',
- 'value'=>$range,
- 'sliderColor'=>Slider::TYPE_GREY,
- 'pluginOptions'=>[
- 'min'=>0,
- 'max'=>100,
- 'step'=>1,
- 'range'=>true
- ],
- ]),
- ],
- ],
- ]);
- ?>
- <?php Pjax::end(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement