Forum Replies Created

  • K

    Member
    October 20, 2019 at 5:27 AM in reply to: how to show toast message box in a lightning component ?

    Hi Yogesh,

    You can use "showToast" out-of-box event.

     

    var showToastMsg=$A.get("e.force.showToast");

    showToastMsg.setParams({

    message : "Your error message" ,

    type : "error"

    });

    showToastMsg.fire();

     

     

    if you want you can pass dynamic params to message.

     

    Thanks

    Srinivas

     

     

Popular Salesforce Blogs

Popular Salesforce Videos