Author Name Kathryn Anne Tan Twitter https://twitter.com/KTan360 Image by https://annieruygtillustration.com/
Furthermore, if our table element is found in a separate Livewire component, we need to find a way to share the data from each filter drop-down to the table component.
Now that we have a way to get each selected drop-down data, let’s finish this by sharing them to another component — our table component.
We can take the selected drop-down data from event.detail, and directly update the $filtersList variable in our table component with it: And that’s it!