GridFieldExportButton
class GridFieldExportButton implements GridField_HTMLProvider, GridField_ActionProvider, GridField_URLHandler
Adds an "Export list" button to the bottom of a {@link GridField}.
Config options
| xls_export_disabled | bool | Set to true to disable XLS sanitisation [SS-2017-007] Ensure all cells with leading [@=+] have a leading tab |
Methods
No description
Handle an action on the given {@link GridField}.
it is also a URL
Handle the export, for both the action button and the URL
No description
No description
No description
No description
No description
No description
Details
at line 46
__construct(string $targetFragment = "after", array $exportColumns = null)
at line 54
array
getHTMLFragments($gridField)
Place the export button in a
<
p> tag below the field
at line 73
Array
getActions(GridField $gridField)
export is an action button
at line 77
handleAction(GridField $gridField, String $actionName, Array $arguments, Array $data)
Handle an action on the given {@link GridField}.
Calls ALL components for every action handled, so the component needs to ensure it only accepts actions it is actually supposed to handle.
at line 86
getURLHandlers($gridField)
it is also a URL
at line 95
handleExport($gridField, $request = null)
Handle the export, for both the action button and the URL
at line 129
string
generateExportFileData(GridField $gridField)
Generate export fields for CSV.