H.Bilbao
Update table actions when change filter
I need to change the visibility of the actions when I change the filter. I have the following code so that it is not calculating the state in each record, but it does not update the visibility of the button until I refresh with F5 or click any action. If I do the find on each record it generates a large number of unnecessary queries.
Thanks
2 replies
Using filament styles outside of the resource
Hi, how can I use filament styles in my app.blade.php? I want to use tables, forms with livewire components but outside the panel and I don't know how to import the styles into app.blade.php. Currently I see the components but without any style.
4 replies
Widget chart between table filter date
How could I modify the start and end of the Trend of a Widget that is within a page, using the date filter selected in the table?
Right now I have like this. But I need it to be from the date selected in the filter.
4 replies
Accessing page table data in the widget
I have a page with implements HasTable and I need the widget to be related to the table data.
I have tried this option in the Panel Builder, but it doesn't work for me:
https://filamentphp.com/docs/3.x/panels/resources/widgets#accessing-page-table-data-in-the-widget
It gives me this error:
Property [$activeTab] not found on component: [app.filament.pages.report]
In the view I only have this
5 replies
FilterDatepicker with extraInputAttributes defaulta value
Hello, I have the following filter but it does not load any default values.
`php
Forms\Components\DatePicker::make('backup_month')
->extraInputAttributes(['type' => 'month'])
->afterStateUpdated(function ($livewire, string $state) {
$this->filter = Carbon::parse($state);
return $livewire->dispatch('refresh');
})
->default(now())
->live(onBlur: true)
2 replies
Best practice to know if I'm in the resource or in the relationI have a form inside a resour manager
I have a form inside a resource that I use inside a relationship manager. I need to modify unique rule with modifyRuleUsing and for that I need to use the livewire component in the relation manager to get the resource ID and a select value in the resource. How do you know if I'm inside the resource or inside the relationship manager?
Now I'm doing like this:
2 replies
Fill select and select a value with afterStateUpdated
I have tried this, but with a select it does not work correctly:
https://filamentphp.com/docs/3.x/forms/advanced#generating-a-slug-from-a-title
I attach code:
4 replies
Resource repeater save record field inside relation manager
Hello, I have a resource with a repeater. Inside the repeater I have a field that I save using mutate:
Now I want to use the resource within a relationship manager, but I don't know how to pass the ticket_id, currently it gives an error that it cannot be null.
2 replies
Secure resource custom page
How can I secure a custom page within a resource for users who do not have a specific permission? I have hidden the action button with this, but if I type the URL of the custom page enters without problems:
https://filamentphp.com/docs/3.x/actions/trigger-button#authorization
5 replies