Skip to main content

Hello,

I have a lightning component in which a window pops up on certain command. now i need to close the pop up on clicking ouside of the window or hitting esc button on key pad any ideas? Thank in advance

1 Antwort
  1. 31. Jan. 2018, 12:26
    Hi Mounica M 10

    For this you can use lightning:overlayLibrary. It helps you define modal .Pressing the Escape key or clicking the close button closes the modal.

    For more information please refer to https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_lightning_overlayLibrary.htm

    Best Regards,

    Siddharth S.

    AppPerfect Corp.

    salesforce@appperfect.com (salesforce@appperfect.com)

    408-252-4100

    http://www.appperfect.com/salesforce/

     
0/9000