modal icon indicating copy to clipboard operation
modal copied to clipboard

How to use wire:modal on the backend (Livewire controller)

Open nenadsijan opened this issue 1 year ago • 0 comments

Dear @PhiloNL This solution <button wire:modal="edit-user, @js(['user' => 1)">Open</button> works perfectly on the blade page, but how to use this wire:modal call from Livewire controller ? Correctly for this scenario when i need to open new modal from backend. $this->dispatch('modal.open', component: 'modals.edit-user', arguments: ['user' => 1]); Thanks in advance Nenad

nenadsijan avatar Jul 02 '24 11:07 nenadsijan