Add a "beforeClose" event handler to a popup

  • 1
  • Idea
  • Updated 3 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.
skuid.$(".ui-dialog-content").dialog({
"beforeClose" : function()
{
//put your event-handler code here.
console.log(arguments);
}
})
Photo of Mordechai

Mordechai

  • 968 Points 500 badge 2x thumb

Posted 4 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

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

Jack Sanford, Champion

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