#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 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Note: See
TracTickets for help on using
tickets.
it was just that startup was not being called.