Merged in izzati-feat-stok-audit-utk-audit (pull request #159)
update column
This commit is contained in:
@@ -139,6 +139,14 @@ class SAExportAudit implements FromCollection, WithHeadings, WithTitle, WithMapp
|
||||
$sheet->getStyle("C5:C{$lastRow}")->getAlignment()->setHorizontal(Alignment::HORIZONTAL_CENTER);
|
||||
$sheet->getStyle("D5:D{$lastRow}")->getAlignment()->setHorizontal(Alignment::HORIZONTAL_CENTER);
|
||||
|
||||
// Wrap text untuk semua column
|
||||
$sheet->getStyle("A5:{$lastCol}{$lastRow}")->getAlignment()->setWrapText(true);
|
||||
|
||||
// Auto-fit semua column berdasarkan content
|
||||
foreach (range('A', $lastCol) as $col) {
|
||||
$sheet->getColumnDimension($col)->setAutoSize(true);
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user