Skip to content

Commit 6161be1

Browse files
committed
feat: allow callable exportFormat parameter #167
2 parents 69d6257 + cec3e77 commit 6161be1

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)