integready / yii2-linkpagerextender
Link pager extender
Installs: 30
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-12-29 05:56:31 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist integready/yii2-linkpagerextender "~1.0"
or add
"integready/yii2-linkpagerextender": "~1.0"
to the require section of your composer.json
file.
Example:
GridView id must be set.
- index.php
(View)
:
<?php use yii\grid\GridView; ?> <?= GridView::widget([ 'id' => 'books-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'as pager' => 'integready\linkpagerextender\PagerBehavior', 'pager' => [ 'class' => 'integready\linkpagerextender\LinkPager', 'template' => '{pageButtons} {pageSize}', 'pageSizeList' => [10, 50, 1000, 5000], ], 'columns' => [ // Columns list ], ]); ?>