Skip to content
Discussion options

You must be logged in to vote

So your Table Component should preferably have something like the below, sot that you can distinguish which Table Component you're issuing a refresh to:

    /**
     * @var array<mixed>
     */
    protected $listeners = ['refreshDayTable' => '$refresh'];

Then in your Modal component,

        $this->emit("refreshDayTable");

If this isn't working, then take a look using DebugBar and see if the emit event is actually firing. Definitely works emiting from that Modal component to the Data Table though, as I use a modified version of WireElements Modal.

Replies: 1 comment

Comment options

lrljoe
Feb 24, 2023
Collaborator Sponsor

You must be logged in to vote
0 replies
Answer selected by jordivela007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants