F
Filament2mo ago
Asmit

Help: Loading indicator on submit button.

I use custom livewire page with fialment form and action Livewire Class:
public function form(Schema $schema): Schema
{
return $schema->components([
FileUpload::make('attachment')
])
}
public function saveAction(): Action
{
return Action::make('save')
->label('Submit');
}
public function form(Schema $schema): Schema
{
return $schema->components([
FileUpload::make('attachment')
])
}
public function saveAction(): Action
{
return Action::make('save')
->label('Submit');
}
Blade File:
<div class="wire-elements-modal">
<form>
<x-filament::section class="wire-elements-modal-section">

{{ $this->form }}

</x-filament::section>

{{ $this->saveAction }}
</form>
<x-filament-actions::modals/>
</div>
<div class="wire-elements-modal">
<form>
<x-filament::section class="wire-elements-modal-section">

{{ $this->form }}

</x-filament::section>

{{ $this->saveAction }}
</form>
<x-filament-actions::modals/>
</div>
Please suggest how can I show loading indication on saveAction while file upload is in progess ?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?