2

我在 AccordionView 中有两个 ContentPanes。当单击第一个按钮时,我想在第二个按钮上设置 href,然后将其设置为选中状态。为此,我运行以下代码:

searchResultsContentPane.set("href", "modules/content_panes/test_module.html");
searchAccordionContainer.selectChild(searchResultsContentPane, true);

出于某种原因,尽管 ContentPane 会在中途打开它的动画,然后它会弹出关闭而没有加载任何内容。

这是 ContentPane 声明:

<!-- Search Results Accordian View -->
<div class="searchAccordianPane" id="searchResultsContentPane" title="Search Results" dojoType="dijit.layout.ContentPane" data-dojo-props='refreshOnShow:true'></div>

如果我将声明中的 href 设置为 data-dojo-props 值,它将显示它,但最终我需要将 GET 值添加到 URL,因此我不能让它成为静态的。

谢谢您的帮助

4

0 回答 0