James Maroney
James Maroney

Reputation: 3256

dojo AccordionPane onSelected replacement

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.

Upvotes: 1

Views: 1210

Answers (2)

ivalkeen
ivalkeen

Reputation: 1411

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

Upvotes: 1

James Maroney
James Maroney

Reputation: 3256

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.

Upvotes: 0

Related Questions