class CreateOpenFundsD extends Component implements HasForms, HasActions
{
use InteractsWithActions;
use InteractsWithForms;
use WithFileUploads;
public function mount(): void
{
//....
}
public function form(Form $form): Form
{
//Only half of my form... (the other one is rendered in the livwire component view)
}
public function importHeadersAction(): Action
{
return Action::make('importHeaders')
->label('Importa Headers')
->form([
FileUpload::make('attachment')
->storeFiles(false)
->label('Carica File (CSV o XLSX)')
->acceptedFileTypes(['text/csv', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
->columnSpan(6)
])
->action(function ($data) {
dd($data); //how this method is not triggered?
});
}
class CreateOpenFundsD extends Component implements HasForms, HasActions
{
use InteractsWithActions;
use InteractsWithForms;
use WithFileUploads;
public function mount(): void
{
//....
}
public function form(Form $form): Form
{
//Only half of my form... (the other one is rendered in the livwire component view)
}
public function importHeadersAction(): Action
{
return Action::make('importHeaders')
->label('Importa Headers')
->form([
FileUpload::make('attachment')
->storeFiles(false)
->label('Carica File (CSV o XLSX)')
->acceptedFileTypes(['text/csv', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
->columnSpan(6)
])
->action(function ($data) {
dd($data); //how this method is not triggered?
});
}