Opened 13 years ago

Closed 12 years ago

Last modified 12 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:

Description

<script>

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"));

}

</script>

HTML:

<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 alecsta@… 13 years ago.
source code for this defect

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by alecsta@…

source code for this defect

comment:1 Changed 12 years ago by bill

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

comment:2 Changed 12 years ago by Adam Peller

Owner: changed from koranteng to Adam Peller

comment:3 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

comment:4 Changed 12 years ago by Adam Peller

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

Note: See TracTickets for help on using tickets.