Skip to content

Commit 8b21367

Browse files
authored
Merge pull request #160 from jaydons/patch-2
Add exportFormat method.
2 parents ff1d37c + fe3291f commit 8b21367

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Html/Column.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,20 @@ public function titleAttr($value)
567567
return $this;
568568
}
569569

570+
/**
571+
* Set excel column format when exporting.
572+
*
573+
* @param string $format
574+
* @return $this
575+
* @see https://github.com/yajra/laravel-datatables-export
576+
*/
577+
public function exportFormat($format)
578+
{
579+
$this->attributes['exportFormat'] = $format;
580+
581+
return $this;
582+
}
583+
570584
/**
571585
* @return array
572586
*/

0 commit comments

Comments
 (0)