Power-Components / livewire-powergrid

⚡ PowerGrid generates modern, powerful and easy-to-customize data tables using Laravel Livewire.

Home Page:https://livewire-powergrid.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`withAvg` breaks Exporting data

dansysanalyst opened this issue · comments

commented

Have you searched through other issues to see if your problem is already reported or has been fixed?

Yes, I did not find it.

Did you read the documentation?

Yes, I did not find it.

Have you tried to publish the views?

Yes - I didn't work.

Is there an error in the console?

It appears that adding withAvg() to a column breaks exporting data, even if not visible in Export.

            Column::add()
                ->title('Calories')
                ->field('calories')
                ->visibleInExport(visible: false)
                ->withAvg('Average', header: true, footer: false)
                ->sortable(),

CleanShot 2024-05-11 at 12 11 38@2x

PHP Version

No response

PowerGrid

No response

Laravel

No response

Livewire

No response

Alpine JS

No response

Theme

Tailwind 3.x

Describe the bug.

No response

To Reproduce...

First click on "FOO" then....

Extra information

No response