https://github.com/keygenqt/link-pager-points
....
https://github.com/keygenqt/link-pager-points
extensions yii2
Last synced: 4 months ago
JSON representation
....
- Host: GitHub
- URL: https://github.com/keygenqt/link-pager-points
- Owner: keygenqt
- License: apache-2.0
- Created: 2016-02-18T07:28:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T20:44:56.000Z (about 5 years ago)
- Last Synced: 2025-01-17T19:08:44.235Z (6 months ago)
- Topics: extensions, yii2
- Language: PHP
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Link Pager Points
===================
LinkPager for yii2 with points
## Installation
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either add
```
"require": {
"keygenqt/yii2-link-pager-points": "*"
}
```of your `composer.json` file.
## Usage
```php
=
ListView::widget([
'dataProvider' => $model->search(Yii::$app->request->getQueryParams()),
'itemView' => 'block/item',
'layout' => "{items}{pager}",
'options' => [
'tag' => 'ul',
'class' => 'list'
],
'itemOptions' => [
'tag' => 'li',
],
'pager' => [
'class' => 'keygenqt\linkPager\LinkPager',
'maxButtonCount' => 5
],
]);
?>
```