Created
August 26, 2016 14:55
-
-
Save tommyilpazzo/7ea8b91936a50d068c8a6976b0c9e518 to your computer and use it in GitHub Desktop.
SFDC: Lightning JS function to fire an event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
fireEvent: function(component, event, helper) { | |
var object = component.get("v.object"); | |
var event = component.getEvent("eventName"); | |
event.setParams({ "object": object }); | |
event.fire(); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment