Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. <?php yiiwidgetsPjax::begin(['id' => 'checkin-grid',
  2. 'timeout' => false,
  3. 'enablePushState' => false,
  4. ]); ?>
  5. <?= GridView::widget([
  6. 'id'=>'checkin-table',
  7. 'dataProvider' => $dataProvider,
  8. 'filterModel' => $searchModel,
  9. 'showOnEmpty'=>true,
  10.  
  11. 'columns' => [
  12. [
  13. 'class' => 'yiigridCheckboxColumn',
  14. 'multiple'=>true,
  15. ],
  16. [
  17. 'attribute' => 'fullName',
  18. 'label' => 'Name',
  19. 'value' => 'users.fullname',
  20. ],
  21. [
  22. 'attribute' => 'gender',
  23. 'label' => 'Gender',
  24. 'value' => 'users.gender',
  25. ],
  26. [
  27. 'attribute' => 'age',
  28. 'label' => 'Age',
  29. 'value' => 'users.age',
  30. 'filter'=> Slider::widget([
  31. 'name'=>'ageRange',
  32. 'value'=>$range,
  33. 'sliderColor'=>Slider::TYPE_GREY,
  34. 'pluginOptions'=>[
  35. 'min'=>0,
  36. 'max'=>100,
  37. 'step'=>1,
  38. 'range'=>true
  39. ],
  40. ]),
  41. ],
  42. ],
  43. ]);
  44. ?>
  45. <?php Pjax::end(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement