Hi all,
I am trying to trigger a modal (which is a global component) from a reusable component, which in this case is my menu.
I want this to be able to trigger the modal from every page on my platform. How would I do this? I have tried several ways but none have been working for me unfortunately.
Hopefully someone can help me out!
Thanks!
You can easily trigger something in the reusable from the page (eg you can access a custom WF created inside the reusable from the page)
However it’s harder to trigger something on the page from the reusable. To solve this issue I think most people use URL parameters.
If you store a custom state on the reusable itself you can also access it from the page.
Edit : You can also put your modal inside the reusable or even create the modal as a reusable and add it to your reusable menu.