Something like this:
<js:Accordion selectedIndex="0">
<js:dataProvider>
<fx:Array>
<js:Panel id="panel1" title="Panel 1"/>
<js:Panel id="panl2" title="Panel 2"/>
</fx:Array>
</js:dataProvider>
</js:Accordion>
This is the markup of an Accordion which used to work, which doesn’t anymore.
<js:Accordion id="accordion" width="100%" height="100%">
<js:dataProvider>
<fx:Array>
<view:SetupPanel/>
<view:PackagePanel/>
<view:TemplatePanel/>
<view:FontPanel/>
</fx:Array>
</js:dataProvider>
</js:Accordion>
> On May 30, 2017, at 4:54 PM, Peter Ent <[email protected]> wrote:
>
> Hi,
>
> Do you have a quick example of how to use the FlexJS Accordion? The ASDoc
> on it is thin. The children of the Flex SDK Accordion were navigation
> components that supported things like title so each section could be
> labeled. I don't see an AccordionChild or something similar that can be
> used with Accordion. I took a guess and made Container a child of it, but
> it just blew up.
>
> Thanks,
> ‹peter
>
> On 5/30/17, 6:39 AM, "Harbs" <[email protected]> wrote:
>
>> It seems like the new layouts totally broke Accordion.
>>
>> Accordion relied on absolute sizing to handle expanding and collapsing of
>> content. I tried to add a new layout which is basically a copy of the old
>> OneFlexibleVerticalLayout and use that for accordion, but that does not
>> seem to work either due to changes in containers (I think).
>>
>> Peter, do you thin you could look into this?
>>
>> Thanks,
>> Harbs
>