Skip to content

Commit fe3291f

Browse files
authored
Add exportFormat method.
This PR is in relation with https://github.com/yajra/laravel-datatables-export package.
1 parent ff1d37c commit fe3291f

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)