Skip to content

Commit

Permalink
Merge pull request #167 from patricktorres27/update-exportFormat
Browse files Browse the repository at this point in the history
feat: allow callable exportFormat parameter
  • Loading branch information
yajra authored Feb 20, 2023
2 parents 36fb107 + 254db16 commit 63ed890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Html/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,11 @@ public function titleAttr(mixed $value): static
/**
* Set excel column format when exporting.
*
* @param string $format
* @param string|callable $format
* @return $this
* @see https://github.com/yajra/laravel-datatables-export
*/
public function exportFormat(string $format): static
public function exportFormat(string|callable $format): static
{
$this->attributes['exportFormat'] = $format;

Expand Down

0 comments on commit 63ed890

Please sign in to comment.