Flow List, add content with Action Script
Date: Aug 23, 2007
Views: 2738
Question:
For now I don't want to use the contentXML option; I have noticed that there is a content option, I already input some information in the Component Inspector under parameters and it works fine. I would like to know if you have some sort of sample code, that shows haw can I add Items to the content value with Action Script.
Similiar as when you create an object {column1:value1} and then add it to a grid with the addItem() method, what would be the process with the Flow List
Similiar as when you create an object {column1:value1} and then add it to a grid with the addItem() method, what would be the process with the Flow List
Answer:
| walker (Admin) |
In order to add items to the Flow List component you need to use addItem method. Please take a look at the following example. myFlow.addItem({path:"img.jpg", description:"My Image"}); |