Skip to content
Discussion options

You must be logged in to vote

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)
    )])
])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by martinsjek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants