3

is there a way to get the active item of a card layout panel?

I used to use it until the last update [ today ]. after update it just stopped !!

is there any other way to check which panel/card is activated ?

Noon
  • 1,181
  • 6
  • 20
  • 38

1 Answers1

3

panel.getLayout().getActiveItem() is the method to use.

Here's the documentation

That is the recommended method. You don't need to look for alternatives.

Varun Achar
  • 14,781
  • 7
  • 57
  • 74
  • i got this error: `Object [object Object] has no method 'getActiveItem' ` – Noon Sep 08 '12 at 11:50
  • Your layout is being overriden somewhere. Check the layout property of the panel in firebug. What is the `object` that you're getting in the error? It will be a subclass of `Ext.layout.Layout` – Varun Achar Sep 09 '12 at 07:21