F
Filament6mo 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);
}
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.
0 Replies
No replies yetBe the first to reply to this messageJoin