ArrayList does not declare a default property, so that’s not going to work. It 
could be we should add that, but in the meantime, you probably need something 
like this (completely untested and probably has typos):

<js:ArrayList>
<js:source>
<Array>
<vos:TabBarButtonVO label="Tile Container" hash="sec1" icon=
"{FontAwesome5IconType.TH_LARGE}"/>
<vos:TabBarButtonVO label="Tile List" hash="sec2" icon=
"{FontAwesome5IconType.TH_LIST}"/>
</Array>
</js:source>
</js:ArrayList>



> On Aug 11, 2020, at 2:50 PM, Carlos Rovira <[email protected]> wrote:
> 
> Hi,
> 
> I was trying to declare Arrayist in the following way like we used to do in
> Flex for ArrayCollection [1] was I think is not possible:
> 
> <j:TabBar width="100%" selectedIndex="0"
> itemRenderer="itemRenderers.TabBarVerticalIconItemRenderer"
> sameWidths="true">
> <j:dataProvider>
> <js:ArrayList>
> <vos:TabBarButtonVO label="Tile Container" hash="sec1" icon=
> "{FontAwesome5IconType.TH_LARGE}"/>
> <vos:TabBarButtonVO label="Tile List" hash="sec2" icon=
> "{FontAwesome5IconType.TH_LIST}"/>
> </js:ArrayList>
> </j:dataProvider>
> </j:TabBar>
> 
> Do you know if this is possible and maybe I'm doing something wrong in the
> declaration? or maybe we have support in compiler for this?
> 
> Thanks
> 
> [1]
> http://www.java2s.com/Code/Flex/Data-Model/InitializinganArrayCollectionusingMXMLwithembeddeddata.htm
> -- 
> Carlos Rovira
> http://about.me/carlosrovira

Reply via email to