Table CSS for Livewire Page outside Filament
Hi team, apologies if there is a thread for this but I couldn't find anything to fix it.
What I am trying to do:
I have a page outside the Filament generated pages. Let's call this Posts.
On this page I have a livewire table component I created suing this documentation: https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component
I am basically using Filament to do all the admin and this one public facing page, but the rest of the public facing components I am customizing.
The problem / What I need:
Is there any way to get that this page to load the table CSS from Filament? The rest of the components that are public facing I will be customizing myself.
Can I publish and link the table css and or JS to make the table work or something? Any help would be greatly appreciated.
What I tried:
I tried your instructions from https://discord.com/channels/883083792112300104/1331028366178128015 but it doesnt seem to do anything.
Simple post.blade.php:
Solution:Jump to solution
```php
<!DOCTYPE html>
<html lang="{{ strreplace('', '-', app()->getLocale()) }}">
<head>...
9 Replies
You should follow all the Installation steps here:
https://filamentphp.com/docs/3.x/tables/installation
I'll try give it another run through... but it all works normally once you are in the normal filament area /admin/.... iit's just this one table embedded in a view.
Can you share the layouts.app file
Solution
I just used the one the filament guys wrote (may be out of date now)?
include the
@filamentStyles
and @filamentScripts
https://filamentphp.com/docs/3.x/tables/installation#configuring-your-layoutOTL of course.... I can't believe I missed that.... it works now. Thank you!
No problem 😄 , make sure you mark the post as solved 🙂