GridFieldPrintButton
class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionProvider, GridField_URLHandler
Adds an "Print" button to the bottom or top of a GridField.
Methods
__construct(string $targetFragment = "after", array $printColumns = null)
No description
array
Array
handleAction(GridField $gridField, String $actionName, Array $arguments, Array $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
array
getPrintColumns()
No description
setPrintColumns(array $cols)
No description
boolean
getPrintHasHeader()
No description
setPrintHasHeader(boolean $bool)
No description
Details
at line 35
__construct(string $targetFragment = "after", array $printColumns = null)
at line 47
array
getHTMLFragments($gridField)
Place the print button in a
<
p> tag below the field
at line 71
Array
getActions(GridField $gridField)
Print is an action button.
at line 83
handleAction(GridField $gridField, String $actionName, Array $arguments, Array $data)
Handle the print action.
at line 95
getURLHandlers($gridField)
Print is accessible via the url
at line 104
handlePrint($gridField, $request = null)
Handle the print, for both the action button and the URL
at line 140
array
getTitle(GridField $gridField)
Return the title of the printed page
at line 171
generatePrintData(GridField $gridField)
Export core.