F
Filament13mo ago
Felix

Question: why does the Table go under the $table->contentFooter().

I have been testing on how I can make an footer with an action button under my table, but the table goes under the footer (when i use $table->contentFooter()). I also have tested it on an clean new project and it does the same. what is the method/way to fix this?
6 Replies
arnaudsf
arnaudsf2mo ago
Got the same, I overwrite css class to add flex, column, and order to table and my div. The lazy way 🫣 For futur reading, you have to put your view between <tr></tr> thanks @jelmerkeij
Mikail
Mikail2w ago
Just encountered this issue today. any fix yet? what element did you target. mind sharing?
arnaudsf
arnaudsf2w ago
Filament file :
->contentFooter(function (Table $table): View {
$columns = $table->getColumns();
...
return view('view', $data);
})
->contentFooter(function (Table $table): View {
$columns = $table->getColumns();
...
return view('view', $data);
})
View file :
<tr>

</tr>
<tr>

</tr>
OR
<tr>

</tr>
<tr>

</tr>
<tr>

</tr>
<tr>

</tr>
<tr>

</tr>
<tr>

</tr>
Don't put div or anything
Mikail
Mikail2w ago
sorry but i really do not get what you sent
toeknee
toeknee2w ago
the view is a blade file which should open with a <tr></tr>
Mikail
Mikail2w ago
oh i got it working. Thanks

Did you find this page helpful?