Tag Archive for 'getheaderat()'

30
Oct

Setting styles on individual Flex Accordion headers

Loyal reader, Madhu, asked the following question the other day:

Is it possible to color individual headers of the accordion?

Well, I played around with it briefly this evening and it seems that you can get individual accordion headings using the Accordion class’s getHeaderAt() method, then it is just a matter of saving that reference in a variable, or applying a style directly to the returned Button reference.

The example itself is pretty simple, but I’m sure the same principles apply to other styles as well.

Full code after the jump.

Continue reading ‘Setting styles on individual Flex Accordion headers’

27
Aug

Adding icons to a Flex Accordion control

The following example demonstrates how you can add embedded icons to a Flex Accordion container.

Full code after the jump.

Continue reading ‘Adding icons to a Flex Accordion control’