ExtraModalFooterAction does nothing
Hi, I'm trying to render an extra action for the editOptionModal:
The button renders as it should, but when I click it, nothing happens. No php or js errors as well.
How can I fix that?
Thanks!
5 Replies
from my experience you need to write/assign the extra action to a boolean variable and then set the variable in the ->action().
example:
dump wouldn't work, you want dd() that would throw an exception then.
How would you implement this kind of feature to delete records in edit modal?
dd = dump die;
youm would just do $record->delete() ? send ntoification : failed notification
sorry, my example didn't cover this:
What I wanted to achieve is a delete button in the footer of the edit modal. I've already tried ->action(fn ($record) => $record->delete()) which didn't do anything.