diff --git a/src/Excel/PhpOffice.php b/src/Excel/PhpOffice.php index 3ae4a2b..14cfe48 100644 --- a/src/Excel/PhpOffice.php +++ b/src/Excel/PhpOffice.php @@ -116,6 +116,9 @@ public function export(string $filename, array|\Closure $closure, ?\Closure $cal while ($generate->valid()) { $column = 0; $items = $generate->current(); + if ($callbackData) { + $items = $callbackData($items); + } foreach ($items as $name => $value) { $columnRow = $this->getColumnIndex($column) . $row; $annotation = '';