PDA

View Full Version : Possible to load nested component structure with template?



JohnJRyan
22 Sep 2010, 7:44 AM
I am looking for a way to load multiple components from a json data source that are related by the row of data but essentially different components.

For example, I would like to take a row that has an image and some data related to the image and create two separate components. One contains the image and the other contains the data. I want to lay these components out in 'hbox' inside of another component that will become a card for a carousel. I want to do this for all the rows returned.

I was looking at the example with the google map and the tweet timeline and it looked like the tpl tag is used for html output. What is the preferred method for accomplishing my goal?

JohnJRyan
22 Sep 2010, 9:19 AM
maybe a simplified version of BufferedCarousel would be helpful. The one in the touchstyle example is really difficult to grasp.