PDA

View Full Version : [SOLVED] Missing method in Ext.layout.CardLayout



dotnetCarpenter
23 Nov 2007, 7:48 AM
When using layout 'card', the Panel doesn't have the setActiveItem method. But if I use new Ext.layout.CardLayout({... with the same config I do (I just tried with the code from the documentation). However I get a exception if I use the method setActiveItem.

this.container has no properties

Is this a bug or?

efege
23 Nov 2007, 8:08 AM
setActiveItem is not a method of the panel, but of its layout: panel.getLayout().setActiveItem()

dotnetCarpenter
24 Nov 2007, 2:49 PM
Thanks. I'll look into it