Jack Sleight
Jack Sleight
FFilament
Created by Jack Sleight on 1/20/2025 in #❓┊help
Using value from parent livewire component in ViewField
I've added a form to a custom livewire component. The form contains a ViewField, and within that view I need to check the value of one of my livewire component's props. I can't just do $complete, that gives an undefined error. If I pass the value in with ->viewData(['complete' => $this->complete]) it works the first time but it's not reactive, when complete changes the view is not updated. Any ideas?
10 replies
FFilament
Created by Jack Sleight on 1/16/2025 in #❓┊help
Snapshot missing error with Livewire component in form
I've followed the instructions here https://filamentphp.com/docs/3.x/forms/advanced#inserting-livewire-components-into-a-form to add a custom Livewire component to my form. However when I update other fields in the form that have ->live() enabled the Livewire component disappears and this error is thrown in the JS console:
Uncaught Snapshot missing on Livewire component with id: QgdMtxsmliLRGtcmiYG8
Uncaught Snapshot missing on Livewire component with id: QgdMtxsmliLRGtcmiYG8
Any ideas what's wrong?
1 replies
FFilament
Created by Jack Sleight on 12/6/2024 in #❓┊help
Multiple edit pages for a single resource
I have a resource where I need two completely different edit pages. Whats the best way to approach this? I've already duplicated the edit page class, and I can see that there's a getForms method that returns the form from the resource class. Do I just override that to return a different form? Or is there a better way to do it?
14 replies
FFilament
Created by Jack Sleight on 12/3/2024 in #❓┊help
Refresh page data from resource form action
I need to call refreshFormData (https://filamentphp.com/docs/3.x/panels/pages#refreshing-form-data) from an action within a resource form, but that method is on the page. How can I access the page component from the action method?
21 replies
FFilament
Created by Jack Sleight on 11/29/2024 in #❓┊help
Adding actions to table group rows
Hi, is is possible to add actions to table group rows?
5 replies
FFilament
Created by Jack Sleight on 4/11/2024 in #❓┊help
Custom grid column widths
Is this the best way to give a Grid component custom column widths, or have a missed something more official? The child *: variant is required as the extra classes are applied to the wrapper not the element with grid set.
->extraAttributes(['class' => '*:lg:grid-cols-[auto_1fr_1fr]'])
->extraAttributes(['class' => '*:lg:grid-cols-[auto_1fr_1fr]'])
1 replies
FFilament
Created by Jack Sleight on 10/20/2023 in #❓┊help
Passing an ID to a custom edit action
I'm trying to create an edit action on a custom page that allows me to edit a model directly from the page (rather than going to the normal resource page). It mostly works, but I'm running into problems passing the right model ID to the action as an argument. If I hard-code an ID it works perfectly.
124 replies