Do I need to create all objects which i will possible use with itemRenderer in createChildren function, even if the current item must not show some of them ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
createChildren()is for creating child components which lives along all host component’s life-cycle. These children and their count are immutable like label of a button or border of a border container.To create or remove dynamic children it is better to use
commitProperies()orupdateDisplayList(). The latter is more preferable because of you can create/remove dynamic children and perform their positioning in a single piece of code.