EDIT: I created a new idea for this, go to https://github.com/PH7-Jack/wireui to know
It is normal in all software after performing an action, sho...
For further actions, you may consider blocking this person and/or reporting abuse
hello, what's mean the
'method' => 'appointments:delete',
after confirm delete? is the livewire method? or route named?is a name of livewire listener
if my namespace is
namespace App\Http\Livewire\Admin\Main;
and the class isOrg
, and method I want to call isdelete
, then what should I fill in the'method'
?you put the name of the listener, no matter where the class is, what is taken into account is the name of the listener.
An important point to think about is that there can be 2 components with the "delete" listener, so put a prefix in this case, ex: "user: delete" and "team: delete"
I try to
protected $listeners = ['confirm' => 'syncFromDC'];
but nothing happen after click Oke.image
dev-to-uploads.s3.amazonaws.com/i/...
Any solution? Same thing here... After confirm the dialog nothing happens.
This is some of my User class:
Works for me now that I have declared the $listeners in my Usuario class:
Hey brother, can you please tell me how these parts are working ??
'method' => 'appointments:delete',
'params' => [], // optional, send params to success confirmation
'callback' => '', // optional, fire event if no confirmed
Hello
in the key method, inform the livewire listener that will receive the event
the parameter key is to pass data to this event, like an id, name ..
the callback key is used when confirmation is denied, eg ask to delete, if the answer is no, call event X
very poorly explained. could use a simple example