Hi Dhwani, In MXML, you should be able to declare an array of strings as follows: data="['home','product','view','support','contact us']"
Regarding a TabBar component, I would expect it to subclass ButtonBar instead of dynamically creating one as a child. There is a DataGridButtonBar component that subclasses ButtonBar for DataGrid columns. I would think you could copy that pattern and how it uses a particular item renderer in src/main/resources/defaults.css and leverage that for your TabBar. In theory, if you create a ButtonBarItemRenderer that looks like a Tab it should pretty much work. Thanks, -Alex On 8/24/16, 6:42 PM, "dhwanishah85" <dhwanisha...@gmail.com> wrote: >Hi Alex, > >I am able to create a component which dynamically creates ButtonBar with >the >passed ButtonNames.I have took reference for creating ButtonBar from >DataGrid. > >My current Interface looks like this: ><js:beads> ><layout:TabLayoutComponent data="home,product,view,support,contact us"/> ></js:beads> > >I am not able to pass Array in this component. What extra measures >required >to pass an Array/ArrayList to the component? For now I am splitting the >values and creating the array inside my component. > >Thanks >Dhwani >My Apache Flex community contribution is working on the open source >Moonshine-IDE.com for FlexJS. > > > >-- >View this message in context: >http://apache-flex-development.2333347.n4.nabble.com/FlexJS-need-help-in-c >reating-reusable-tabBar-control-tp54492p54602.html >Sent from the Apache Flex Development mailing list archive at Nabble.com.