Adding an icon to a jazz.ui.Button button.

One answer

The constructor for Button takes an imageClass param. Pass it, and also set a className on your button (to narrow the scope of your CSS).
Example:
var button = new jazz.ui.Button({imageClass: "someClass"});
dojo.addClass(button.domNode, "MyButton");
Then in CSS:
.Mybutton .someClass {
background-image:url(someImage.gif);
width:80px; //tweak this width depending on your image
}
Example:
var button = new jazz.ui.Button({imageClass: "someClass"});
dojo.addClass(button.domNode, "MyButton");
Then in CSS:
.Mybutton .someClass {
background-image:url(someImage.gif);
width:80px; //tweak this width depending on your image
}