You need to sign in to do that
Don't have an account?

Modal popups
Hi,
I need to display a Lightning Component in a modal popup form, just like when you click Edit on an Opportunity or Account page. From reading the Aura source code I can see that I need to make use of ui:panel and/or ui:modal as these implement the LDS concept of “Modals” and take care of hiding the page’s scrollbar. I can’t find any examples of how to use them from inside Lightning or Visualforce.
Can anyone assist?
Thanks.
- Andy
I need to display a Lightning Component in a modal popup form, just like when you click Edit on an Opportunity or Account page. From reading the Aura source code I can see that I need to make use of ui:panel and/or ui:modal as these implement the LDS concept of “Modals” and take care of hiding the page’s scrollbar. I can’t find any examples of how to use them from inside Lightning or Visualforce.
Can anyone assist?
Thanks.
- Andy
http://cloudyworlds.blogspot.com/2016/02/opening-modals-using-lightning.html
Also my colleague Jitendra also wrote on how to do this
http://www.jitendrazaa.com/blog/salesforce/dynamically-instantiate-and-destroy-lightning-components-modal-dialog-component/
Hope that gets you some insight into how to achieve this .
I was wondering if anyone had found a solution that used the native Lightning component ui:modal?
Thanks again.
http://www.sfdcmonkey.com/2017/04/15/modal-box-lightning-component-salesforce/