PDA

View Full Version : Initializing items as a property vs initializing inside initComponent



basench4
26 Feb 2014, 8:25 PM
Is there a difference between setting up the items of a container as a property vs defining them inside the initComponent function?

evant
26 Feb 2014, 9:04 PM
No.

Defining components in initComponent allows you to do any programmatic stuff you need to do, whereas that's a lot more difficult to do when doing it declaratively.