I have a popup in my reusable header. Is there a way to access that popup from outside the header?
Not directly… but via custom states and/or custom events you can…
e.g. if you want to to show the popup when a button on the page is clicked, just create a custom event inside the RE that shows the popup.
You can trigger that custom event from the page when the button is clicked.
If you want to access data from the RE on the page you’ll have to use custom states on the RE itself to hold the date, which can the be read from the page.
ok. i’ll give it a shot, thanks!
Check out this plugin if you ever need to pass anything more complicated to/from the reusable element, or between multiple reusable elements on one page.