F
Filament7mo ago
wazkaz

Loading indicator in the modal

Hello, I want to display a loading indicator in the modal, somehow. I trying to use the render hooks. Can anyone help me about it, which are there any premade render hooks for the modals? So in the form I have a select component and after I select a value it goes to fetch an API. I added the fetching logic in the afterStateUpdated() function, but the problem is there is no any indicator for the user about the fetching. The best would be if the select component show the loading indicator but for that we should update the select component itself.
4 Replies
Dennis Koch
Dennis Koch7mo ago
I’d try to wrap that stuff in a Livewire component which is shown in the modal. Then you have full control.
wazkaz
wazkazOP7mo ago
You mean make a Livewire component using php artisan make:form-field command?
Dennis Koch
Dennis Koch7mo ago
No. That's a form field, which are no Livewire component. I mean a classic Livewire component artisan make:livewire probably
wazkaz
wazkazOP7mo ago
Oh, okay I will try that
Want results from more Discord servers?
Add your server