Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keygenqt/link-pager-points
....
https://github.com/keygenqt/link-pager-points
extensions yii2
Last synced: about 11 hours 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 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T20:44:56.000Z (over 4 years ago)
- Last Synced: 2024-11-13T14:52:55.503Z (4 days 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
===================![GitHub](https://img.shields.io/github/license/keygenqt/yii2-link-pager-points)
![Packagist Downloads](https://img.shields.io/packagist/dt/keygenqt/yii2-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
],
]);
?>
```