I am dynamically creating an Accordion at run time. I place a
new panel in the Accordion which generates a new Accordion header
that I attribute an icon to. All good so far. I need to dynamically
place +/- buttons on the right side of each header to give the user
the ability to replicate, or delete the panel/Accordion component.
I can't seem to addChild to the header with a child button. The
Accordion header is a button itself and not a container. I started
to create a custom MXML module extending Button, which I intended
to substitute via the headerRenderer if I could work something out,
but that also will not allow me to drop anything onto the
component, as it is not a container.
Is there any way to do what I am trying to accomplish?