Forum /
Sencha General Forums /
Community Discussion /
Duplicate config options
Duplicate config options
Hi,
i'm a bit confused about some duplicate config options in class hirachie.
For example if you look at Panel.
The Panel defines 'applyTo' as option.
Panel extends Container extends BoxComponent extends Component which itself defines 'applyTo' as config option.
The same can be seen with 'bubbleEvents' in Container.
Container extends BoxComponet extends Component which also defines 'bubbleEvents' itself.
Does someone now whats the matter with this?
Thanks
Sencha - Ext JS Dev Team
Look harder.
They're inherited.
Sorry but NO...
if I look at the API for Panel I see the config options table and for 'applyTo' the column 'Defined By' says 'Panel' ... so I think you should take a look at the API ;-).
Sencha - Ext JS Dev Team
Yes. That one is implemented separately in Panel because Panel requires extra internal structure (bwrap, body, header, footer etc)
OK, and what about the 'bubbleEvents' option?
Thanks a lot..
Sencha - Ext JS Dev Team
It's available and processed in the Component base class.
It could be redefined in each subclass.
It's [] in Component, and ['add', 'remove'] in Container because each has different requirements.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us