1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    16
    Vote Rating
    0
    ck4ExtJS is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,555
    Vote Rating
    60
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    Look harder.

    They're inherited.

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    16
    Vote Rating
    0
    ck4ExtJS is on a distinguished road

      0  

    Default

    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 ;-).

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,555
    Vote Rating
    60
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    Yes. That one is implemented separately in Panel because Panel requires extra internal structure (bwrap, body, header, footer etc)

  5. #5
    Sencha User
    Join Date
    Mar 2010
    Posts
    16
    Vote Rating
    0
    ck4ExtJS is on a distinguished road

      0  

    Default

    OK, and what about the 'bubbleEvents' option?
    Thanks a lot..

  6. #6
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,555
    Vote Rating
    60
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    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.

Thread Participants: 1