How do I make automatic height row based on content in the maatwebsite version 3 laravel excel?

前端 未结 1 1248
温柔的废话
温柔的废话 2020-12-22 05:46

I had search reference and the reference say to try like this :



        
相关标签:
1条回答
  • 2020-12-22 06:24

    public function registerEvents(): array
        {
            return [
                AfterSheet::class    => function(AfterSheet $event) {
                    ...
                    $event->sheet->getDelegate()
                        ->getStyle('R37:Z37')
                        ->applyFromArray([ 'alignment' => ['wrapText' => true]])
                },
            ];
        }

    0 讨论(0)
提交回复
热议问题