Displaying Toast Message from Modal in Lightning Components
With traditional Visualforce development we use apex:pageMessage to display custom messages to the User. And now with Lightning Components development we can use force:showToast to display custom messages! Here we are going to display our Toast Messages from a Modal and expose it through a Lightning Component Tab. Below we are going to create our custom Lightning Component and Lightning Component custom Tab. LightningToastMsg.cmp: This is our component code <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,force:lightningQuickActionWithoutHeader,force:hasRecordId" access="global"> <!--Load LDS from static resource--> <ltng:require styles="/resource/SLDS/assets/styles/salesforce-lightning-design-system.css"/> <!--Define Modal--> <div class="demo-only" style="height: 800px;"> <section role="dialog" tabindex="-1"...