Activity Forums Salesforce® Discussions What is the use of setParam in Salesforce lightning Components?

  • Lukesh

    Member
    November 17, 2020 at 5:13 pm

    in simple words, it provide value to parameter for example-
    var show = $A.get("e.c:testingApplicationEvent");
    show.setParams({"message": "HeyBoy how are you "});
    show.fire();
    here message is an attribute , we set the value of attribute to "HeyBoy how are you "
    hope u understand i'am newbie😀

  • Marziya

    Member
    November 18, 2020 at 11:56 am

    Sets a parameter for an event. This method doesn't modify an event that has already been fired.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos