Adds the ability to either automatically or manually refresh a SilverStripe GridField
JavaScript PHP Scheme CSS
Latest commit f1ae506 Nov 24, 2016 @jelicanin jelicanin committed with dhensby added ajax refresh button automatic integration with every GridField …
…instance (#3)

* updated button positioning

* added ajax refresh button automatic integration with every GridField instance

[NOTE] in order to use this feature you must apply patch: silverstripe/silverstripe-framework#2311

* Added config params for
- auto refresh interval
- auto refresh enable / disable

GridFieldAjaxRefreshConfig Class Converted to PSR-2
Permalink
Failed to load latest commit information.
_config
code
css
javascript
lang
templates/Includes
.editorconfig
README.md
_config.php
code-of-conduct.md
composer.json

README.md

GridFieldAjaxRefresh

Adds the ability to either automatically or manually refresh a SilverStripe GridField

Requirements

  • SilverStripe 3.x

Installation

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)
);