Closed reflog closed 13 years ago
You can do this with joButton today by including the img
tag in the button "text". Like this: var x = new joButton('<img src="mybutton.png">');
. Another approach would be to set the button's CSS classname to something you've setup to add a background image with CSS, like this: var y = new joButton().setStyle('okbutton');
. Then have a CSS style setup for that okbutton
classname to have a background image (and probably a height/width as well).
I'm looking into making a joImageButton widget in a future release which might make this a little cleaner, but would end up doing about the same thing underneath the hood.
Great, thanks! Might I suggest adding those tips to the documentation?
Thanks for your great work
Is this supported/planned? Any pointers?