Make action button processing like save button #19461
Answered
by
leandrocfe
martinsjek
asked this question in
Help
-
Beta Was this translation helpful? Give feedback.
Answered by
leandrocfe
Mar 25, 2026
Replies: 1 comment
-
|
If you are using an Action in a Form use Filament\Actions\Action;
use Filament\Schemas\Components\Actions;
use Filament\Schemas\Components\Html;
Actions::make([
Action::make('myAction')
->extraAttributes([
'x-data' => 'filamentFormButton',
'x-bind:disabled' => 'isProcessing',
])
->label(Html::make(<<<'HTML'
<span x-show="isProcessing">Processing</span>
<span x-show="!isProcessing">My Action</span>
HTML)
)])
]) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
martinsjek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

If you are using an Action in a Form