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

  • What is the use of setParam in Salesforce lightning Components?

    Posted by Aditya on April 28, 2020 at 3:58 pm

    What is the use of setParam in Salesforce lightning Components?

    Marziya replied 4 years ago 3 Members · 2 Replies
  • 2 Replies
  • 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