ExportButton Component
ExportButton Component is responsible for export grid data to specified data format (cvs, xml, and so on).
To enable ExportButton Component add exportButton element with specified selectProvider item to listing configuration file.
Example: <Magento_Sales_module_dir>/view/adminhtml/ui_component/sales_order_grid.xml
By default Magento allows CSV and Excel XML export data formats.
How to add new export format
To add new export format:
- Add configuration data to ExportButton definition
Magento/Ui/view/base/ui_component/etc/definition.xml
- Add controller for new format processing
\Magento\Ui\Controller\Adminhtml\Export\GridToFoo
- Add converter
\Magento\Ui\Model\Export\ConvertToFoo