Activity Forums Salesforce® Discussions What is the use of force:showToast in lightning components ?

  • Saddam

    Member
    October 3, 2019 at 6:06 pm

    Hi,

    A toast displays a message below the header at the top of a view. The message is specified by the messageattribute.

    force:showToast is not available on login pages.

    This example displays a toast message "Success! The record has been updated successfully."

    showToast : function(component, event, helper) {
    var toastEvent = $A.get("e.force:showToast");
    toastEvent.setParams({
    "title": "Success!",
    "message": "The record has been updated successfully."
    });
    toastEvent.fire();
    }

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Salesforce Integration Tutorial | Integrate Salesforce with Apps

Video in

This "𝐒𝐚𝐥𝐞𝐬𝐟𝐨𝐫𝐜𝐞 𝐈𝐧𝐭𝐞𝐠𝐫𝐚𝐭𝐢𝐨𝐧 𝐓𝐮𝐭𝐨𝐫𝐢𝐚𝐥" video by Edureka will help you understand what is Salesforce integration in detail. It will also address the various Salesforce integration…