Do all children have to be created in the createChildren function on the ItemRenderer?

Do I need to create all the objects that I will use with itemRenderer in the createChildren function, even if the current element should not display some of them?

+3
source share
2 answers

createChildren()Designed to create child components that live throughout the life cycle of a host component. These children and their score are unchanged, like a button label or border container border.

To create or delete dynamic children, it is better to use commitProperies()or updateDisplayList(). The latter is preferable due to the fact that you can create / delete dynamic children and perform their positioning in one piece of code.

+3

: . , .
: , . Flex invalidateChildren ( - ). , , , createChildren.

, , , .

+2

All Articles