Welcome, Guest
Username: Password: Remember me

TOPIC: Image in button, radio button with bootstrap

Image in button, radio button with bootstrap 06 Jul 2013 21:15 #7897

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
I have a fk displaying it's data with RADIO as control.
Boostrap takes it and transforms it in a button group : nice, it works. But what if the field pointed by the fk is an image ? Could i display the image instead of the name of the image in thebutton ?
Thanks for any help.
The administrator has disabled public write access.

Image in button, radio button with bootstrap 07 Jul 2013 12:54 #7902

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
I never tried that.
You can try to create a new JDom class for that, using the bootstrap buttons.
Of course, you will need to call html.fly.image inside in order to get the right image url.
It should not be difficult.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.085 seconds

Get Started