Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#5125 closed defect (invalid)

Can't programmaticly create a dropdownbutton to a tooltipdialog

Reported by: gregwilkins Owned by:
Priority: high Milestone:
Component: Dijit - Form Version: 1.0
Keywords: tooltipdialog dropdownbutton Cc:
Blocked By: Blocking:

Description

Try to create a dropdownbutton to a tooltipdialog does not work and it appears something is not being mixed in. With the following code:

                        var node = document.createElement('div');
...
                        var instr = document.createElement('div');
                        var instrDD = document.createElement('div');
...
 
                        dojo.body().appendChild(node);
...
                        node.appendChild(instr);
                        instr.appendChild(document.createElement('span'));
                        instr.appendChild(instrDD);
                        instrDD.innerHTML="<b>select instrument</b>";
...
 
                        var tmp = new dojox.layout.FloatingPane({
                                id: "win"+wid,
                                class: "livePrice",
                                title:"Spot AUD/USD",
                                dockable: true,
                                maxable: false,
                                closable: true,
                                resizable: false
                        },node);
...
 
 
                        var instrDDTtD = new dijit.TooltipDialog({
                                id: "instrDD"+wid,
                                title: "Select instrument"
                        }, instrDD);
 
                        var instrB = new dijit.form.DropDownButton({
                                id: "instr"+wid,
                                label: "AUD/USD"
                        }, instr);

the tooltipdialog is not correctly created and an explicit call to instrDDTtD.show() fails with no show method.

clicking the dropdown does nothing.

Dylan had a glance at this code and could not see anything immediately wrong.

Change History (2)

comment:1 Changed 12 years ago by gregwilkins

Resolution: invalid
Status: newclosed

it was just that startup was not being called.

comment:2 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.