zhuravljov/yii2-pagination
最新稳定版本:1.2.3
Composer 安装命令:
composer require zhuravljov/yii2-pagination
包简介
Yii2 Pagination Widgets
关键字:
README 文档
README
Installation
The preferred way to install the extension is through composer.
Add to the require section of your composer.json file:
"zhuravljov/yii2-pagination": "~1.0"
Usage
Way to add page size widget to each GridView and ListView of an application
using DI container definition:
<?php return [ 'container' => [ 'definitions' => [ \yii\widgets\LinkPager::class => \zhuravljov\yii\pagination\LinkPager::class, ], ], ];
Advanced container configuration of LinkPager and LinkSizer widgets:
<?php return [ 'container' => [ 'definitions' => [ \yii\widgets\LinkPager::class => \zhuravljov\yii\pagination\LinkPager::class, \zhuravljov\yii\pagination\LinkPager::class => [ 'maxButtonCount' => 5, ], \zhuravljov\yii\pagination\LinkSizer::class => [ 'sizes' => [5, 10, 20, 50, 100], ], \yii\data\Pagination::class => [ 'defaultPageSize' => 10, 'pageSizeLimit' => [1, 100], ], ], ], ];
There is StoredPagination to store page size that was selected before by user.
DI container definition looks like:
<?php return [ 'container' => [ 'definitions' => [ \yii\data\Pagination::class => \zhuravljov\yii\pagination\StoredPagination::class, ], ], ];
There is StoredSort to store selected sorting.
DI container definition looks like:
<?php return [ 'container' => [ 'definitions' => [ \yii\data\Sort::class => \zhuravljov\yii\pagination\StoredSort::class, ], ], ];
统计信息
- 总下载量: 23.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 5
- 推荐数: 5
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-05-01