FilamentF
Filament2y ago
giro

Action call from livewire function

Is possible to call a model action from a livewire function. For example:

public function selectBillingImport($section)
    {
        $action = Action::make('select-billing-import')
            ->label('Importar')->modalHeading('Importar datos')
            ->successNotificationTitle('Ok imported')->disabledForm()
            ->modalContent(fn (): View => view(
                'import.billing',
            ))->modalContentFooter(null)->modalSubmitAction(false)->modalCancelAction(false);
    }
`

This not give error but new modal not appear.

Thanks.
Was this page helpful?