- The Book of Dojo
- The Dojo Book, 0.4
- Part 1: "Introduction"
- Part 2: "Out of the Box" Dojo
- Part 3: "The Dojo Programming Model"
- Part 4: "More on Widgets"
- Part 5: "Connecting the pieces"
- Part 6: "Customizing Dojo Builds for Better Performance"
- Part 7: "Utilities"
- Part 8: "Internationalization and Accessiblity"
- Part 9: "Dojo Community"
- Part 10: "Fresh From The Shed" Dojo
- BookWriting
- Glossary
comboButton
Submitted by criecke on Sat, 03/24/2007 - 20:54.
Used in HTML Element:button
A combination Button and DropDownButton. Use this for a button that has a common action (e.g. "Make Regular Dinner") and less common related actions (e.g. "Make Romantic Dinner" and "Make TV Dinner")
Example
<button dojoType="comboButton" menuId='saveMenu'> <img src="images/editIcon.gif" width="32" height="32"> Save </button> <div dojoType="PopupMenu2" id="editMenu" toggle="wipe"> <div dojoType="MenuItem2" iconSrc="images/save.gif" caption="Save" accelKey="Ctrl+S" onclick="mySave();" /> <div dojoType="MenuItem2" iconSrc="images/saveAs.gif" caption="Save As...." accelKey="Ctrl+A" onclick="mySaveAs();" /> </div>
You can also specify your own background images, as in Button.
API Reference: dojo.widget.ComboButton
See Also: Button, DropDownButton, PopupMenu2, MenuItem2
- Printer-friendly version
- Login or register to post comments
- Unsubscribe post
