Simple, drop down & combo buttons

Buttons can do an action, display a menu, or both:

Create

Create
Edit

Edit
Save

Save

Sizing

Short buttons, tall buttons, big buttons, small buttons... These buttons size to their content (just like <button>).

big
small
long

tall

User defined button

Dojo users can extend the button class and define their own background images. Here's an example:

short
bit longer
ridiculously long

Programatically changing buttons

clicking the buttons below will change the buttons above

CutCutCtrl+CCtrl+C
 
CopyCopyCtrl+XCtrl+X
 
PastePasteCtrl+VCtrl+V
 
SaveSaveCtrl+SCtrl+S
 
Save AsSave AsCtrl+ACtrl+A