PDA

View Full Version : Ext 4.1 this.getComponentLayout().getDockedItems is not a function



carlosgoias
18 May 2012, 6:34 PM
Hi,

I was trying to migrate 4.0.x to 4.1, and I'm getting that error, does anybody can help me?

Thank you.

scottmartin
18 May 2012, 9:03 PM
How are you trying to reference this?
Ext.layout.component.Dock :: getDockedItems()

Regards,
Scott.

carlosgoias
22 May 2012, 4:45 AM
I'm trying to query for a container with a certain 'itemId'.
Example:
var items = Ext.ComponentQuery.query('container [itemId=col-21]');

carlosgoias
22 May 2012, 4:51 AM
Well, I think I got It...

I just took out the space on the query sentence, and It worked.
var items = Ext.ComponentQuery.query('container[itemId=col-22]');

scottmartin
22 May 2012, 4:52 AM
This should work:

Ext.ComponentQuery.query('#col-21 container');
Ext.getComponent('#col-21');

Regards,
Scott.

scottmartin
22 May 2012, 4:53 AM
Good to know, thanks for the update.

Scott.