\GridFieldMultiDeleteButton
Button to delete every checked row. The only confirmation would be via javascript.
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class GridFieldMultiDeleteButton
extends GridFieldApplyToMultipleRows
{
- // Inherited members from GridFieldApplyToMultipleRows
- protected callable $rowHandler;
- protected $targetFragment;
- protected $buttonText;
- protected $actionName;
- protected $buttonConfig;
- // methods
- public void __construct()
- public void deleteRecord()
- // Inherited methods from GridFieldApplyToMultipleRows
- public void __construct()
- public array getHTMLFragments()
- public Array getActions()
- public array handleAction()
- public void getURLHandlers()
- public array handleIt()
- protected void onBeforeList()
- protected void onAfterList()
- protected void onEmptyList()
Hierarchy
Extends
Members
protected
- $actionName — string
- $rowHandler — callable
- $targetFragment — string
Methods
public
- __construct() — Shortcut to create a button that deletes all selected entries
- deleteRecord()
Inherited from GridFieldApplyToMultipleRows
protected
- onAfterList() — This allows subclasses to have a hook at the end of running through all the items. Response will usually be an array on the way in but it can be changed to whatever and will be returned as is.
- onBeforeList() — Hook for subclasses
- onEmptyList()
public
- getActions() — Return a list of the actions handled by this action provider.
- getHTMLFragments() — Returns a map where the keys are fragment names and the values are pieces of HTML to add to these fragments.
- getURLHandlers() — Return URLs to be handled by this grid field, in an array the same form as $url_handlers.
- handleAction() — Handle an action on the given {@link GridField}.
- handleIt()