Add action support for Image Component

  • 6
  • Idea
  • Updated 2 years ago
  • Implemented
  • (Edited)
Would like to see ability to support actions triggered via onclick event, etc. 

Use Case: Similar to icons, we use images instead of text in a lot of places.  Being able to trigger actions (e.g. popups, redirect to url, etc.) when user clicks on image would be incredibly useful.  This can be accomplished with javascript currently but requires code and you look the power of the action framework.  Adding declarative support would be a welcomed enhancement :)
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,076 Points 10k badge 2x thumb

Posted 3 years ago

  • 6
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Yes Barry - we have this on our list. 

We might add on click actions to the wrapper component (like they have in the mobile builder) so that it can be applied more generically.  But that's merely an implementation detail, you will be able to do what you are looking for.   We are going to do this. 
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
PS - I like you emoticon for this topic.  Though I have to differ.  Not silly at all! 
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,076 Points 10k badge 2x thumb
I'm a silly kind of guy :)

Regarding where to implement, having actions in the wrapper would be great as well.  My personal preference would be for Image components to have their own discrete actions.  My thinking is that while an image could be contained in a wrapper, if you have lots of images (e.g. dashboard/tile menu system), the additional overhead processing, HTML payload size increase, etc. of the wrapper would be unnecessary just to get actions for the images.  It's only a small difference in performance, but it can add up quickly as complexity of the page itself increases.

Thanks!
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
actions on the image component are a great idea. Any word on when this might happen?
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Hello Skuid Community ~

Thank you for your thoughtful suggestion! Skuid listened to your concern and has implemented your idea in the new Brooklyn GA release which is now available in the Skuid Releases page.

As a reminder, Salesforce does NOT allow reverting back to prior versions of managed packages. Skuid always recommends installing new versions in a non-business critical sandbox environment to test all mission critical functionality before installing into a production environment. We also recommend that you update out of date themes when you upgrade.

Thanks again,
-Stephen
Photo of Barry Schnell

Barry Schnell, Champion

  • 18,076 Points 10k badge 2x thumb
Great enhancement!

Basic scenario tested and confirmed with 9.3.1.  Thank you!