Kitty
Kitty
FFilament
Created by King Dice on 6/30/2024 in #❓┊help
Empty hidden fields
In your relationship, you can pass a condition to only save it if it's not empty: ->relationship('relationship-field', condition: fn (?array $state): bool => filled($state['field-name']))
4 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
I understand. The action buttons that are actions have the loader. Thanks so much for all your help
29 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
Is there anyway I can add a loader to Action Buttons? Like in this case:
public function downloadResultAction(): Action
{
return Action::make('downloadResult')
->color('info')
->label(trans('Download Summary'))
->url(fn (): string => route('download'));
}
public function downloadResultAction(): Action
{
return Action::make('downloadResult')
->color('info')
->label(trans('Download Summary'))
->url(fn (): string => route('download'));
}
29 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
Makes the dream work
29 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
Yes
29 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
Yes! That is working for the wizard.
29 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
Down on line 233 is the button
29 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
29 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
Sorry to reply to you
29 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
That added the svg code but is not firing it. In the next button I can see it firing in the code regardless of the time it takes. My submit method is create(). Do I need to scope it to the resource? Or call it a different way?
29 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
No description
29 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
This is also the case when creating action in a resource
public function downloadResultAction(): Action
{
return Action::make('downloadResult')
->color('gray')
->label(trans('Download Summary'))
->url(fn (): string => route('download'));
}
public function downloadResultAction(): Action
{
return Action::make('downloadResult')
->color('gray')
->label(trans('Download Summary'))
->url(fn (): string => route('download'));
}
{{ $this->downloadResultAction }}
29 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
I would expect it to, put it does not. When I view the code of the next button you can see the loader code. The submit button does not have it. This is the case for any <x-filament::button> on a custom page
29 replies
FFilament
Created by Kitty on 6/14/2024 in #❓┊help
How do you add processing spinner to wizard button?
29 replies
FFilament
Created by Kitty on 6/13/2024 in #❓┊help
Problem with afterStateHydrated
What I have debugged so far is that when the toggle buttons are filled the fields it is dependent on are empty so $component->getOptions() is empty. I have been trying various afterStateUpdated calls on the fields, and it almost works, but I feel like I am chasing the cats tails. You can see that in https://gist.github.com/griggsk/ae1f384aceddbd83ebe78b33395c2886#file-gistfile2-txt
11 replies
FFilament
Created by Kitty on 6/13/2024 in #❓┊help
Problem with afterStateHydrated
Line 67 - 90 are where the $get variables are coming from. And line 202 is where they are being used.
11 replies
FFilament
Created by Kitty on 6/13/2024 in #❓┊help
Problem with afterStateHydrated
11 replies
FFilament
Created by Kitty on 6/13/2024 in #❓┊help
Problem with afterStateHydrated
Where would I call this. I have tried $this->form->fill() but that does not work
11 replies
FFilament
Created by Daniel on 6/13/2024 in #❓┊help
Help: How to save data of a related model within a Filament form?
No you only have relationship managers or repeaters. You can set the repeater to default to only two and not allow more. https://filamentphp.com/docs/3.x/panels/resources/relation-managers#relation-managers---interactive-tables-underneath-your-resource-forms
4 replies
FFilament
Created by Vladimir on 6/13/2024 in #❓┊help
FIlament Wizard Layout in Livewire Component is missing Next button
You would remove the Submit code you added and replace it with the filament button. You also need to check that you have set the colors and loaded the presets. It's also very hard to help you debug by screenshots. Especially when they don't show all the code.
13 replies