Can I open a specific entry in a dojo accordion? -
i want put links in left navigation of application open xpage , select specific accordion entry. not sure how this
any thoughts?
i assuming here want programmatically. answer- https://stackoverflow.com/a/1190455/1047998 - describes usage of selectchild
used select specific accordion pane. can go through dojo api documentation of dijit.layout.accordioncontainer - http://dojotoolkit.org/api/1.6/dijit/layout/accordioncontainer - can refer documentation selectchild
.
update:
so let's if define accordion container this:
<xp:div dojotype="dijit.layout.accordioncontainer" id="accordioncontainer"> <xp:div dojotype="dijit.layout.contentpane" id="pane1" title="pane 1"> content 1 </xp:div> <xp:div dojotype="dijit.layout.contentpane" title="pane 2" id="pane2"> content 2 </xp:div> <xp:div dojotype="dijit.layout.contentpane" title="pane 3" id="pane3"> content 3 </xp:div> <xp:div dojotype="dijit.layout.contentpane" title="pane 4" id="pane4"> content 4 </xp:div> </xp:div>
so select pane3
javascript code like:
var ac = dijit.byid("#{id:accordioncontainer}"); ac.selectchild(dijit.byid("#{id:pane3}"));
Comments
Post a Comment