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}.
Handle the export, for both the action button and the URL
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 56
__construct(string $targetFragment = "after", array $exportColumns = null)
at line 69
array
getHTMLFragments(GridField $gridField)
Place the export button in a
<
p> tag below the field
at line 92
array
getActions(GridField $gridField)
export is an action button
at line 97
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 112
array
getURLHandlers(GridField $gridField)
it is also a URL
at line 127
HTTPResponse
handleExport(GridField $gridField, HTTPRequest $request = null)
Handle the export, for both the action button and the URL
at line 167
string
generateExportFileData(GridField $gridField)
Generate export fields for CSV.