Jack Sleight
Jack Sleight
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