class MyTab extends Component implements HasForms, HasActions
{
use InteractsWithActions;
use InteractsWithForms;
public function addReadingAction(): Action
{
return Action::make('Modal')
->form([ $this->getReadingsForm() ])
->action( function ($data) {
dd($data);
});
}
//...
}
class MyTab extends Component implements HasForms, HasActions
{
use InteractsWithActions;
use InteractsWithForms;
public function addReadingAction(): Action
{
return Action::make('Modal')
->form([ $this->getReadingsForm() ])
->action( function ($data) {
dd($data);
});
}
//...
}