Add a "beforeClose" event handler to a popup

  • 1
  • Idea
  • Updated 4 years ago
  • Not Planned
For those of you wondering how to add an event handler to a skuid popup for any event (i.e. "close", "beforeClose", etc) here's a simple line of code you can run once the popup opens.
"beforeClose" : function()
//put your event-handler code here.
Photo of Mordechai


  • 988 Points 500 badge 2x thumb

Posted 5 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,828 Points 20k badge 2x thumb
Thanks Mordechai - appreciate you contributing to the Skuid Body of Knowledge.. 
Photo of Jack Sanford

Jack Sanford, Champion

  • 9,714 Points 5k badge 2x thumb
Is this possible to use for a drawer as well to run actions before the drawer closes?