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
Dear @PhiloNL This solution
<button wire:modal="edit-user, @js(['user' => 1)">Open</button>
works perfectly on the blade page, but how to use thiswire: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