Hey! Currently learning how components work in Toddle, and had a question about how events work when nesting components.
I created a simple button component with an event. When an element inside the component is clicked, the event is triggered. Now I can add this component to a page, and use it to update a variable when the event is triggered. This works great and I understand how everything is connected and how I can pass down attributes into the component from the parent etc.
I also have a footer that will live on every page of my app. I've turned it into a component so I can easily update it across my entire app without needing to do it manually for each page.
I started to get confused when I added the button component inside my footer. I can add my footer to a page, and see the button component inside of it. However when I'm on the page, it seems like I've lost access to the event in the button component. I can only see the event when I'm editing the footer component itself.
I feel like I might be missing something / don't fully understand how either components or events work. I assumed the button component event would have been accessible on the page even if it was nested inside another component such as my footer.