\GridFieldExportToExcelButton
GridFieldExportToExcelButton
Adds an "Export list" button to the bottom of a GridField.
Most code is the same as GridFieldExportButton
- Author: Martijn van Nieuwenhoven <info@axyrmedia.nl>
Synopsis
class GridFieldExportToExcelButton
extends GridFieldExportButton
{
- // methods
- public void getHTMLFragments()
- public void handleExport()
- public array generateExportFileData()
Hierarchy
Extends
- GridFieldExportButton
Tasks
Line | Task |
---|---|
71 | should GridFieldComponents change behaviour based on whether others are available in the config? |
Methods
public
- generateExportFileData() — Generate export fields for EXCEL.
- getHTMLFragments() — Place the export button in a <p> tag below the field
- handleExport() — Handle the export, for both the action button and the URL