Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
({
doInit: function(component, event, helper) {
//Fetch the asteroid list from the Apex controller
helper.getAsteroidList(component);
},
showDetails: function(component, event, helper) {
//Get data via "data-data" attribute from button (button itself or icon's parentNode)
var url = event.target.getAttribute("data-data") || event.target.parentNode.getAttribute("data-data")
},
searchAsteroids: function(component, event, helper) {
helper.getAsteroidList(component);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.