Crud-with-Export-buttons
CRUD with Export Buttons (Excel, PDF, CSV)
The export() method allows you to enable export buttons for the grid.
You can pass an array with the export formats you want to enable.
Based on the values provided, ArtiGrid will automatically display the corresponding export buttons in the interface.
Currently supported formats:
excelpdfcsv
<?php
require 'ArtiGrid.php'; // load the library
$grid = new ArtiGrid();
$grid->table('million')
->export(['excel','pdf','csv']) // Export buttons
->modal();
echo $grid->render(); // render the CRUD
?>