Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2592 closed defect (fixed)

selectChild is not working in AccordionContainer widget

Reported by: guest Owned by: Adam Peller
Priority: high Milestone: 1.0
Component: Dijit Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:



function pgSet1(){

var accSet = dojo.widget.byId("s1"); var pane = dojo.widget.byId("p1"); accSet.selectChild(pane);

} function pgSet2(){

var accSet = dojo.widget.byId("s1"); var pane = dojo.widget.byId("p2"); accSet.selectChild(pane);


function pgSet3(){

var accSet = dojo.widget.byId("s1"); accSet.selectChild(dojo.widget.byId("p3"));




<p><input type="button" name="pgSelect1" value="Select First" onClick="pgSet1();" />&#160;&#160;&#160;<input type="button" name="pgSelect2" value="Select Second" onClick="pgSet2();" />&#160;&#160;&#160;<input type="button" name="pgSelect3" value="Select Third" onClick="pgSet3();" /></p> <div dojoType="AccordionContainer?" duration="100" labelNodeClass="label" containerNodeClass="accBody" style="float: left; margin-right: 30px; width: 200px; height: 200px; overflow: hidden" widgetId="s1"> <div dojoType="ContentPane?" label="Pane one" id="p1" selected="true">This is first pane</div> <div dojoType="ContentPane?" label="Pane two" id="p2">This is second pane</div> <div dojoType="ContentPane?" label="Pane three" id="p3">This is last pane</div> </div>

Attachments (1)

mytest_AccordionContainer1.html (1.6 KB) - added by [email protected] 15 years ago.
source code for this defect

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by [email protected]

source code for this defect

comment:1 Changed 15 years ago by bill

Component: WidgetsDijit
Milestone: 1.0
Owner: changed from bill to koranteng

comment:2 Changed 15 years ago by Adam Peller

Owner: changed from koranteng to Adam Peller

comment:3 Changed 15 years ago by Adam Peller

Resolution: fixed
Status: newclosed

comment:4 Changed 15 years ago by Adam Peller

(In [9242]) Add unit test, refs #2592

Note: See TracTickets for help on using tickets.