Power-Components / livewire-powergrid

⚡ PowerGrid generates modern, powerful and easy-to-customize data tables using Laravel Livewire.
https://livewire-powergrid.com
MIT License
1.46k stars 215 forks source link

css class in table not set #1325

Closed marineusde closed 7 months ago

marineusde commented 7 months ago

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?

No

PHP Version

8.2.7

PowerGrid

5.2.0

Laravel

10.39

Livewire

3.3.5

Alpine JS

No response

Theme

Bootstrap

Describe the bug.

In the table the css classes are not set in the bootstrap theme, so the "table-striped" doesnt work (and some other things I think)

To Reproduce...

Install new version, use bootstrap

Extra information

the bug is in the file resources/views/components/table-base.blade.php

class="table power-grid-table {{ data_get($theme, 'tableClass') }}"

has to be

class="table power-grid-table {{ data_get($theme, 'table.tableClass') }}"
{{ data_get($theme, 'table.tableClass') }}

I try to fix it, but have some problems upgrading my fork to version 5 in the moment