Tedy\GridFieldCustom\GridFieldMultiDeleteButton
- Author: Tedy Lim <tedyjd@gmail.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 void getHTMLFragments()
- public void getActions()
- public void handleAction()
- public void getURLHandlers()
- public array handleIt()
- protected void onBeforeList()
- protected void onAfterList()
- protected void onEmptyList()
Hierarchy
Members
protected
- $actionName — string
- $rowHandler — Tedy\GridFieldCustom\callable
- $targetFragment — string
Methods
public
- __construct() — Shortcut to create a button that deletes all selected entries
- deleteRecord()
Inherited from Tedy\GridFieldCustom\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() — {@inheritdoc}
- getHTMLFragments() — {@inheritdoc}
- getURLHandlers() — {@inheritdoc}
- handleAction() — {@inheritdoc}
- handleIt()