We are working on a component which has two (very different) views depending on available space.
I’d like to have some markup which would look like this: <foo:TabBar> <foo:Tab text=“Tab 1”/> <foo:Tab text=“Tab 2”/> <foo:Tab text=“Tab 3”/> <foo:Tab text=“Tab 4”/> </foo:TabBar> The internal structure would change from a relatively simple one to a complex one with a dropdown when there’s little space. I’d like to have a TabModel which would have an array of the tabs specified. I’d have a separate view which is responsible for actually adding the elements. My question is how to have the MXML children added to the model instead of the default behavior where they are added as elements. Thanks, Harbs
