Restruct\SimpleCalendar\GridFieldToggleShowPastButton
Adds an "Print" button to the bottom or top of a GridField.
Synopsis
class GridFieldToggleShowPastButton
implements
GridField_HTMLProvider,GridField_ActionProvider,GridField_DataManipulator
{
- // members
- protected $targetFragment;
- protected $dateField;
- // methods
- public void __construct()
- public array getHTMLFragments()
- public array getActions()
- public void handleAction()
- public array getURLHandlers()
- public void handleToggleShowPast()
- public void getManipulatedData()
- protected void getState()
Hierarchy
Implements
- SilverStripe\Forms\GridField\GridField_HTMLProvider
- SilverStripe\Forms\GridField\GridField_ActionProvider
- SilverStripe\Forms\GridField\GridField_DataManipulator
Members
protected
- $dateField
—
string
Date field to filter on. - $targetFragment
—
string
Fragment to write the button to.
Methods
protected
- getState() — Retrieves/Sets up the state object used to store and retrieve the showPast status
public
- __construct()
- getActions() — toggleshowpast is an action button.
- getHTMLFragments() — Place the print button in a <p> tag below the field
- getManipulatedData()
- getURLHandlers() — Print is accessible via the url
- handleAction() — Handle the print action.
- handleToggleShowPast() — Handle the print, for both the action button and the URL