Benjámin
Benjámin
FFilament
Created by Benjámin on 7/3/2024 in #❓┊help
Livewire 3 wire loading 2 cycles
Resolved, but hardly an exemplary solution. We delay the <x-loading /> with wire:loading.delay.longer, and also sleep for half a sec. This way we have ~750ms, so the user knows something is happening. We still have 2 loading states, but only one has loading spinner, so there is no 'flicker'.
4 replies
FFilament
Created by Benjámin on 4/4/2024 in #❓┊help
Conditional filter rendering by $activeTab
up, please?
6 replies
FFilament
Created by Benjámin on 3/18/2024 in #❓┊help
Multi tenancy Dashboard redirect loop
Fixed in v3.2.56
Fixes issue with tenancy route registration order.
4 replies
FFilament
Created by Benjámin on 11/14/2023 in #❓┊help
Saving relationships when creating record with Repeater
up, please?
6 replies
FFilament
Created by Benjámin on 9/26/2023 in #❓┊help
SelectAction state change action
I ended up to a solution like this with ActionGroup: looping through the versions, and push actions to an array:
foreach ($recordVersions as $version) {
$versions[] = Action::make('version' . $version->id)
->label($version->serial)
->disabled(fn (Offer $record): bool => $record->id === $version->id)
->url(route('filament.admin.resources.offers.edit', ['record' => $version->id]));
}
foreach ($recordVersions as $version) {
$versions[] = Action::make('version' . $version->id)
->label($version->serial)
->disabled(fn (Offer $record): bool => $record->id === $version->id)
->url(route('filament.admin.resources.offers.edit', ['record' => $version->id]));
}
And then made an ActionGroup with that variable:
return [
ActionGroup::make($versions)
->button()
->color('gray')
->label('Versions')
->icon('heroicon-m-chevron-down')
->iconPosition(IconPosition::After)
->hidden(count($recordVersions) <= 1),
...
];
return [
ActionGroup::make($versions)
->button()
->color('gray')
->label('Versions')
->icon('heroicon-m-chevron-down')
->iconPosition(IconPosition::After)
->hidden(count($recordVersions) <= 1),
...
];
8 replies
FFilament
Created by Benjámin on 9/26/2023 in #❓┊help
SelectAction state change action
Edit page header
8 replies
FFilament
Created by Benjámin on 9/26/2023 in #❓┊help
SelectAction state change action
up, please?
8 replies
FFilament
Created by Benjámin on 4/28/2023 in #❓┊help
Using filament components in custom livewire component
Yeah, separately for forms, tables, notis and filament (as the admin). Thank you, I'll try to dig in more, before asking. 😛
6 replies
FFilament
Created by Benjámin on 4/28/2023 in #❓┊help
Using filament components in custom livewire component
Yeah, thank you. I tried to use other components like that, but usually couldn't find the ones that I was looking for. Is there any way to list these registered x-filament components?
6 replies
FFilament
Created by Benjámin on 4/24/2023 in #❓┊help
Filament Table + Livewire UI Custom Modal
I didn't know I could use it like that, thanks! EditAction works fine, and the other part of the question got solved by going with public property instead of protected.
7 replies
FFilament
Created by Benjámin on 4/24/2023 in #❓┊help
Filament Table + Livewire UI Custom Modal
up, please?
7 replies