diginova / yii2-pagesizer
Adds a page size selector to grid views and list views.
Installs: 159
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 4
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-08 13:29:51 UTC
README
Adds a page size selector to grid views and list views.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist diginova/yii2-pagesizer "*"
or add
"diginova/yii2-pagesizer": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, replace \yii\grid\GridView
with \diginova\pagesizer\GridView
and \yii\widgets\ListView
with \diginova\pagesizer\ListView
.
You can use {pagesizer}
inside the $layout
property to customize the page sizer widget's placement, and the $pageSizer
property to customize
the page sizer widget.