views:

348

answers:

2

According to the dojo docs, dijit.layout.AccordionPane is deprecated in favor of dijit.layout.ContentPane
link: http://api.dojotoolkit.org/jsdoc/1.3.2/dijit.layout.AccordionPane

I cannot find an attribute for ContentPane that functions similarly to the AccordionPane's "onSelected" attribute. Is there another widiget or another way to use the ContentPane widget to reproduce this behavior?

I have definitely tried onClick and onFocus to no avail.

A: 

After more research, it seems that in the 1.4.0beta2 release, this is addressed with the "onShow" attribute to ContentPane. I just tested and it does work.

So for now, the AccordionPane still works as expected although it is technically deprecated.

James Maroney
also, you should be able to use topics on the AccordionContainer (actually, see StackContainer for docs on this). Try subscribing to [widgetId]-selectChild.
peller
+1  A: 

I think you should not use deprecated AccordionPane. ContentPane's onShow does what you want.

ivalkeen