yandos666
yandos666
FFilament
Created by yandos666 on 6/11/2024 in #❓┊help
use getOptionsFormComponents to adjust export query
Hi - i'm using getOptionsFormComponents to add a new dropdown to my exporter class, how can i pass the value of the dropdown to the modifyQuery() method to filter by results? In the docs it only seems to mention adding options() to closure functions but getOptionsFormComponents() is static
6 replies
FFilament
Created by yandos666 on 5/30/2024 in #❓┊help
Add filters to stat widgets
As the title suggests, is there a way to add filters to a stats widget in the same way we can with chart widgets? Would be great not to have to create a custom view just for this
3 replies
FFilament
Created by yandos666 on 2/22/2024 in #❓┊help
Equivalent of novas computed fields?
Just wondering if there is a filament equivalent of computed fields for the table builder: https://nova.laravel.com/docs/4.0/resources/fields.html#computed-fields I can see that you can use ViewFields but this seems overkill when i just want to return some textual information where a closure would suffice
6 replies
FFilament
Created by yandos666 on 12/4/2023 in #❓┊help
Nova style relationship links on table builder
So i'm migrating an admin panel from nova to filament v3 and struggling to find the equivalent of novas relationship methods to provide a quick shortcut to a related resource - an example would be displaying the users name in a posts table and clicking on the name takes you to that user resource page. I can use column relationships to get the users name, or actions to provide a clickable link but is there out of the box functionality to combine these without having to revert to custom views etc?
5 replies
FFilament
Created by yandos666 on 8/15/2023 in #❓┊help
Hiding relationManagers on view page (v2)
So i've created a view page and hooked it upto a resource, what i'm wanting to do is not show the related resource managers on this page, but i cant seem to find a way to override getRelations() thats set on the main resource. i've tried including the same method on the view page class but no luck - is there a specific way to do this?
7 replies
FFilament
Created by yandos666 on 7/4/2023 in #❓┊help
How to check for current page from a resource
I'm trying to conditionally render some relation managers depending on if the user is currently viewing the resource from either the view page or edit page, from inside the getRelations() method of the Resource, is there a way of calculating what page is being used?
5 replies