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
I’d try to wrap that stuff in a Livewire component which is shown in the modal. Then you have full control.
You mean make a Livewire component using
php artisan make:form-field
command?No. That's a form field, which are no Livewire component. I mean a classic Livewire component
artisan make:livewire
probablyOh, okay I will try that