PDA

View Full Version : turning a checkbox into an image



Ravuus
22 Feb 2012, 11:08 PM
Hey all,

I'm trying to scour the web to find a good example of using an image as a checkbox. So for instance, you'd click the image and in the background it would flip a switch like a checkbox to on or off and when I submitted my form I could look at that value and deal with the result accordingly.

Thoughts?
Thanks,
Joel.

vadimv
22 Feb 2012, 11:33 PM
You can use the normal extjs checkbox and sass, which has sass var : $form-checkbox-image, you can style it and get want you want.