F
Filamentβ€’3mo ago
pelmer

Actions: Is there a way to receive the results and display it?

As the title say, is there a good/simple way to pass a message back from the executed action and display it for the user? In my specific case it is header actions in a section in an infolist, but a general solution would be better. I know you can probably hook into the livewire components to make this work, but that seems like a hacky and hard to maintain solution for a problem that should be pretty common. I'm also not so proficient in how Livewire works under the hood. I also know about notifications, but that does not a great solution for more advanced or important output. I think I would prefer to show the result inline, but a modal would be fine as well. Bonus question: Is there a way to show progress while the action is executed (not so important, but would be nice). Can someone offer some guidance about this? Thank you for reading to the end! πŸ™‚
3 Replies
sandofgods
sandofgodsβ€’3mo ago
More generaly you can find lot of way to notifie what you need here: https://filamentphp.com/docs/3.x/notifications/installation
pelmer
pelmerβ€’3mo ago
Thanks! Yea, I have read there, but I didn't feel it was what I wanted. After reading though again, it might be good enough with persistent notifications with action buttons.