gds
gds
FFilament
Created by CGM on 7/11/2024 in #❓┊help
Hook for FileUpload field when file removed? (X Clicked to remove)
ok, found out, I had to add into my AppServiceProvider.php:
public function boot(): void
{
...
FilamentView::registerRenderHook(
PanelsRenderHook::BODY_END,
fn (): string => view('filament.forms.components.file-upload-hooks')->render()
);
}
public function boot(): void
{
...
FilamentView::registerRenderHook(
PanelsRenderHook::BODY_END,
fn (): string => view('filament.forms.components.file-upload-hooks')->render()
);
}
And store script into my resources accordingly. Now need to figure out which events I need 🙂
18 replies
FFilament
Created by CGM on 7/11/2024 in #❓┊help
Hook for FileUpload field when file removed? (X Clicked to remove)
Hi @CGM, I'm new to filament and wanted also to get the state when the image upload starts to disable some action buttons. Unfortunately, beforeStateUpdated is not supported by FileUpload component. Perhaps, I could use your solution, but I'm not sure how can I integrate that script. Thanks upfront!
18 replies