Skip to content

Commit 63ed890

Browse files
authored
Merge pull request #167 from patricktorres27/update-exportFormat
feat: allow callable exportFormat parameter
2 parents 36fb107 + 254db16 commit 63ed890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Html/Column.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,11 @@ public function titleAttr(mixed $value): static
588588
/**
589589
* Set excel column format when exporting.
590590
*
591-
* @param string $format
591+
* @param string|callable $format
592592
* @return $this
593593
* @see https://github.com/yajra/laravel-datatables-export
594594
*/
595-
public function exportFormat(string $format): static
595+
public function exportFormat(string|callable $format): static
596596
{
597597
$this->attributes['exportFormat'] = $format;
598598

0 commit comments

Comments
 (0)