Hidden create & cancel button, connect between Livewire component and action

I am making a table with headerActions() above in a Resource:
public static function table(Table $table): Table
{
return $table
->headerActions([
Actions\Action::make('file')->label('Add Document')->form([
Livewire::make(AddDocumentPopup::class)
])
->action(function ($data) {
//
})
])
->columns([
//...
])
}
public static function table(Table $table): Table
{
return $table
->headerActions([
Actions\Action::make('file')->label('Add Document')->form([
Livewire::make(AddDocumentPopup::class)
])
->action(function ($data) {
//
})
])
->columns([
//...
])
}
AddDocumentPopup is my livewire class for some my personal design, it's view simple contain an <input type='file'/>, so i have this image. i want to allow user to select file, then perform some operations on those files and save this file. But i dont know how Livewire return data for me... there are 2 way for me: - livewire return data and work with this file in ->action()... => Button 'Create' & 'Cancel' can work. - work only with livewire => i have to remove those button, and know how to turn off this popup screen. can anyone help me pls...
1 Reply
Nhật Hòa
Nhật HòaOP5mo ago
my image
No description
Want results from more Discord servers?
Add your server