silverstripe/gridfieldajaxrefresh
Composer 安装命令:
composer require silverstripe/gridfieldajaxrefresh
包简介
Adds the ability to either automatically or manually refresh a SilverStripe GridField
README 文档
README
GridFieldAjaxRefresh
Adds the ability to either automatically or manually refresh a SilverStripe GridField
Requirements
- SilverStripe 3.x
Installation
- Download the module from here https://github.com/silverstripe-labs/silverstripe-gridfieldajaxrefresh
- Extract the downloaded archive into your site root so that the destination folder is called gridfieldajaxrefresh
- Run dev/build?flush=all
Usage
To enable the refresh, add the component to the GridField. The parameters control the delay between automatic refreshing and whether or not to use automatic or manual refreshing. Choosing manual refreshing creates a button to trigger the refresh. Automatic refreshing hides the refresh button and triggers the refresh at a specific interval.
$gridFieldConfig = GridFieldConfig::create()->addComponents( new GridFieldAjaxRefresh(5000,true) );
统计信息
- 总下载量: 68.94k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2012-12-06