
Announcements
Howdy guys. Did my searching on this, but couldn't come up with anything.
Still learning. Built a simple 3-screen app, and am now working on reworking that app from a blank canvas. Namely to put things where I want them and make everything responsive (using what seems like 1000+ containers 🙂 ).
As I'm starting on the second screen, I realize I'm repeating the header and the menu navigation. I figure this is a good time to learn components. But it seems that all the cool things that containers do to make things responsive won't work in a component. Namely, obviously can't use things like "parent.width and parent.height". Also variables that I use in a header obviously aren't visible from a component (I set some things through variables like standard colors, fonts, etc).
Are containers and components two elements that don't really play well together?
In a component, instead of using Parent.Width use ComponentName.Width 🙂
As for the variables, pass those into the component as inputs (of whatever type you need, ie color, text etc), then you can reference them within the component 🙂