2017 © Pedro Peláez
 

library yii2-pager

Yii2 smart link pager

image

exploitfate/yii2-pager

Yii2 smart link pager

  • Monday, October 17, 2016
  • by exploitfate
  • Repository
  • 1 Watchers
  • 0 Stars
  • 51 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 2 % Grown

The README.md

yii2-pager

Yii2 smart pager, (*1)

Another LinkPager for Yii2 framework pagination., (*2)

Latest Stable Version Total Downloads Latest Unstable Version License, (*3)

Install

Best way is install via composer, (*4)

composer require "exploitfate/yii2-pager"

Usage

Page size limit override default (optionally)

Setup page size limit in (frontend|backend|app)/config/main.php, (*5)


// Override default parameters for \yii\data\Pagination \Yii::$container->set( \yii\data\Pagination::className(), [ 'pageSizeLimit' => [1, 1000], 'defaultPageSize' => 200, ] );

Replace default LinkPager

In single GridView or ListView, (*6)


echo \yii\grid\GridView::widget( [ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'pager' => [ 'class' => \exploitfate\yii2\LinkPager::className(), ], // other settings 'columns' => [ ['class' => 'yii\grid\SerialColumn'], // other collumns ], ] );

Also you can replace default LinkPager globally. Setup LinkPager for (GridView|ListView) in (frontend|backend|app)/config/main.php, (*7)

GridView, (*8)


// Override default parameters for \yii\grid\GridView \Yii::$container->set( \yii\grid\GridView::className(), [ 'pager' => [ 'class' => \exploitfate\yii2\LinkPager::className(), ], ] );

ListView, (*9)


// Override default parameters for \yii\grid\ListView \Yii::$container->set( \yii\grid\ListView::className(), [ 'pager' => [ 'class' => \exploitfate\yii2\LinkPager::className(), ], ] );

Widget


echo \exploitfate\yii2\LinkPager::widget( [ 'pagination' => $dataProvider->getPagination(), ] );

License

The MIT License (MIT). See LICENSE file., (*10)

The Versions

17/10 2016

dev-master

9999999-dev https://github.com/exploitfate/yii2-pager/

Yii2 smart link pager

  Sources   Download

BSD

The Requires

 

by Exploit Fate

pager yii2 smart link pager yii2 link pager yii2 pager smart link

17/10 2016

1.0.6

1.0.6.0 https://github.com/exploitfate/yii2-pager/

Yii2 smart link pager

  Sources   Download

BSD

The Requires

 

by Exploit Fate

pager yii2 smart link pager yii2 link pager yii2 pager smart link

17/10 2016

1.0.5

1.0.5.0 https://github.com/exploitfate/yii2-pager/

Yii2 smart link pager

  Sources   Download

BSD

The Requires

 

by Exploit Fate

pager yii2 smart link pager yii2 link pager yii2 pager smart link

17/10 2016

1.0.4

1.0.4.0 https://github.com/exploitfate/yii2-pager/

Yii2 smart link pager

  Sources   Download

BSD

The Requires

 

by Exploit Fate

pager yii2 smart link pager yii2 link pager yii2 pager smart link

17/10 2016

1.0.1

1.0.1.0 https://github.com/exploitfate/yii2-pager/

Yii2 smart link pager

  Sources   Download

BSD

The Requires

 

by Exploit Fate

pager yii2 smart link pager yii2 link pager yii2 pager smart link