Adds the ability to either automatically or manually refresh a SilverStripe GridField
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 5 commits ahead, 4 commits behind silverstripe-archive:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_config
code
css
javascript
lang
templates/Includes
.editorconfig
README.md
_config.php
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)
);