event for deck card load/render?

  • 2
  • Idea
  • Updated 1 year ago
  • Under Consideration
I'd like to trigger some javascript each time a deck's card loads. Is there an event or trigger I can tap into?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 1 year ago

  • 2
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
bump
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
^^
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
^^^^

(this should be an easy one, skuid)
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
^^^^^^
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
LOL!
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
This bumpy road is most effective. 

The Deck does not publish any events. You could try and set an event to fire at the same time as the deck is loading.
(Edited)
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Stephen,

Thanks. How would I do that?
Photo of Craig Rosenbaum

Craig Rosenbaum

  • 4,776 Points 4k badge 2x thumb
I am definitely in need of the ability to run a snippet for each card that is loaded with access to that card's element. A use case right now is trying to set the card background color based on values from that row. No problem in javascript on a table with a field renderer, but I have not figured out a way to do this on a card. 

Latest thought is to throw a dummy field editor and run my renderer there and at the end hide that element. However, that seems hacky at best.