Closed alexmanase closed 1 year ago
Please use Filament\Tables\Actions\Action instead of Filament\Actions\Action
Child actions need to be the same class as their parent
@danharrin I just did it and now I get an error when I try to use $set
:
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization
I also updated the demo.
$set
is part of the forms package, not the tables package. What are you trying to do?
I want to change the value of the name
input from the modal.
This one:
that's gonna be tricky, probably $this->mountedTableActionsData['edit']['name'] = 'new value'
, which isn't very clean
This one worked for me:
$this->mountedTableActionsData[0]['name'] = 'New generated content';
It's enough for me.
Thank you for your help!
Package
filament/filament
Package Version
3.0.53
Laravel Version
10.23.1
Livewire Version
3.0.5
PHP Version
8.2.8
Problem description
I tried to create an action in the footer of an Action moodal, and it triggers
MethodNotFoundException
.https://github.com/filamentphp/filament/assets/10696975/29798683-7d25-485b-ada7-41eb76d4a5ed
Here is the documenation section:
https://filamentphp.com/docs/3.x/actions/modals#opening-another-modal-from-an-extra-footer-action
Expected behavior
Trigger the action when pressing the button in the Action modal footer.
Steps to reproduce
README.md
Reproduction repository
https://github.com/alexmanase/filament-action-in-footer-issue
Relevant log output