问 是否有办法在 Laravel excel 3.1 中冻结 Excel 的第一行?
最编程
2024-03-26 18:27:30
...
class SomeExport implements ... // what you need to implement
{
// some other code
public function registerEvents(): array
{
return [
AfterSheet::class => function(AfterSheet $event) {
$workSheet = $event->sheet->getDelegate();
$workSheet->freezePane('A2'); // freezing here
},
];
}
}