dojo AccordionPane onSelected 替换
根据 dojo 文档,dijit.layout.AccordionPane 已被弃用,取而代之的是 dijit.layout.ContentPane
链接:http://api.dojotoolkit.org/jsdoc/1.3。 2/dijit.layout.AccordionPane
我找不到 ContentPane 的属性,其功能类似于 AccordionPane 的“onSelected”属性。是否有其他小部件或其他方法使用 ContentPane 小部件来重现此行为?
我确实尝试过 onClick 和 onFocus 但无济于事。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为你不应该使用已弃用的 AccordionPane。 ContentPane 的 onShow 可以满足您的要求。
I think you should not use deprecated AccordionPane. ContentPane's onShow does what you want.
经过更多研究,似乎在 1.4.0beta2 版本中,这个问题是通过 ContentPane 的“onShow”属性解决的。我刚刚测试过,它确实有效。
因此,目前为止,AccordionPane 仍然可以按预期工作,尽管它在技术上已被弃用。
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.