entidi/silverstripe-togglepaginator
最新稳定版本:0.1.1
Composer 安装命令:
composer require entidi/silverstripe-togglepaginator
包简介
Allow to enable/disable the GridField pagination with one click
README 文档
README
A module that provides a GridField component for temporarily switching the pagination on or off. This can be especially useful when used in conjunction with other modules, e.g. I am currently using it with gridfieldmultiselect to execute special actions on a filtered subset of records.
Installation
You can install silverstripe-togglepaginator by hand by dropping the directory tree into your SilverStripe root. No flush or dev/build is required.
If you use composer, execute:
composer require entidi/silverstripe-togglepaginator dev-master
Usage
Just add the component to the grid field you want disable the pagination on, ensuring it is added before GridFieldPaginator, e.g.:
$grid->getConfig()->addComponent(
new GridFieldTogglePaginator(),
'GridFieldPaginator'
);
This by default will add a button on the top right corner of every grid field instance (this can be overriden by providing a different target fragment while calling the constructor). This button will toggle between pagination enabled and pagination disabled.
Author
This project has been developed by ntd. Its home page is shared by other SilverStripe modules and themes.
To check out the code, report issues or propose enhancements, go to the dedicated tracker. Alternatively, you can do the same things by leveraging the official github repository.
统计信息
- 总下载量: 92
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2015-08-10