Custom Lightning Modal/Popup Box

 What is Modal in Salesforce Lightning Experience ?

Basically Modals/Popup Box are used to display content in a flake/layer above the app. This instance is used in various cases such as the creation or editing of a record, also different types of messaging and wizards.


Modal box in Lightning Experience Looks Like this:-


LightningModalBox.cmp [Lightning Component Code]



LightningModalBoxController.js [Js Controller Code]:



LightningModalBoxApp.app [Lightning App Code]:









After the winter 17 release you can  use the Lightning Design System style in Lightning Apps by extends=”fore:slds”.  The Salesforce Lightning Design System provides a look & feel that’s consistent with Lightning Experience. Use Lightning Design System styles to give your custom applications a UI that is consistent with Salesforce. 

Comments

Popular posts from this blog

Introduction to Salesforce Einstein Vision

Study Material For Salesforce Lightning with Best Practices

How to Fetch a List of Fields Set on an sObject