GridFieldPrintButton
class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionProvider, GridField_URLHandler (View source)
Adds an "Print" button to the bottom or top of a GridField.
Properties
protected | array | $printColumns | ||
protected | bool | $printHasHeader | ||
protected | string | $targetFragment | Fragment to write the button to. |
Methods
public
handlePrint($gridField, $request = null)
Handle the print, for both the action button and the URL
Details
__construct(string $targetFragment = "after", array $printColumns = null)
No description
array
getHTMLFragments($gridField)
Place the print button in a
tag below the field
array
getActions($gridField)
Print is an action button.
handleAction(GridField $gridField, $actionName, $arguments, $data)
Handle the print action.
getURLHandlers($gridField)
Print is accessible via the url
handlePrint($gridField, $request = null)
Handle the print, for both the action button and the URL
protected array
getPrintColumnsForGridField(GridField $gridField)
Return the columns to print
array
getTitle(GridField $gridField)
Return the title of the printed page
generatePrintData(GridField $gridField)
Export core.
array
getPrintColumns()
No description
setPrintColumns($cols)
No description
bool
getPrintHasHeader()
No description
setPrintHasHeader($bool)
No description