FilamentF
Filament15mo ago
Isak

function inside the: ->modalCloseButton()

Hi, I have a question.
Is it possible to pass a function inside the ->modalCloseButton() when it is clicked?
I wanted to do something like this:
->modalCloseButton(function () {
                    $this->dispatch('event');
                })

this is just an example of how I wanted it;
I know it doesn't work this way, but I wanted to see if there's any way to do it.
I am opening the modal using: ->modalContent()
Was this page helpful?