SilverLeague\LogViewer\Forms\GridField\GridFieldClearAllButton
Adds a "Clear all" button to a GridField
- Author: Robbie Averill <robbie@averill.co.nz>
Synopsis
class GridFieldClearAllButton
implements
GridField_HTMLProvider,GridField_ActionProvider
{
- // members
- protected $targetFragment;
- // methods
- public void __construct()
- public array getHTMLFragments()
- public void handleAction()
- public void getActions()
Hierarchy
Implements
- SilverStripe\Forms\GridField\GridField_HTMLProvider
- SilverStripe\Forms\GridField\GridField_ActionProvider
Members
protected
- $targetFragment
—
string
Fragment to write the button to
Methods
public
- __construct()
- getActions() — {@inheritDoc}
- getHTMLFragments() — Add a "clear all" button to a <p> tag and assign it to the target fragment
- handleAction() — {@inheritDoc}