Form in Global Search Action
Hey, Actions normally have a ->form function in which you can give the user a modal and so on. As I can see the GlobalSearch Action does not have this feature. Does anyone know how I can trigger a modal on pressing the action of a GlobalSearch?
I saw in the docs that I can trigger livewire actions but could not find if there is a livewire action for modals. (I would need to process the result of the modal via php)
Solution:Jump to solution
Only way I can think of is to make your own global search action (livewire) component and place it with a renderHook. Ad disable the default global search all together. Not necessarily an easy thing to do, but should be doable.
2 Replies
Solution
Only way I can think of is to make your own global search action (livewire) component and place it with a renderHook. Ad disable the default global search all together. Not necessarily an easy thing to do, but should be doable.
Thanks for the suggestions. I will look and see what I can do.