addExportCsv() public method

Add already implemented csv export
public addExportCsv ( string $text, string $csv_file_name, string | null $output_encoding = NULL, string | null $delimiter = NULL, boolean $include_bom = FALSE ) : Export
$text string
$csv_file_name string
$output_encoding string | null
$delimiter string | null
$include_bom boolean
return Ublaboo\DataGrid\Export\Export
 protected function createComponentGrid($name)
 {
     $grid = new DataGrid(NULL, $name);
     $grid->addExportCsv('export', 'export.csv');
     return $grid;
 }