Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • VeCrea
  • VeCrea's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
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.

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.077 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started