Skip to content

Commit 254db16

Browse files
Fixed exportFormat parameter
This update allows the Column exportFormat() method to accept a callable parameter to support the latest functionality in laravel-datatables-export v1.
1 parent 7190cfd commit 254db16

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)