Capturing Client-side events
SharinPix Events in a Lightning Component
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
<aura:attribute name="recordId" type="String" />
<sharinpix:SharinPix aura:id="sharinpix-cmp" AlbumId="{! v.recordId }" height="500px" />
<aura:handler event="sharinpix:Event" action="{!c.handleEvent}" />
</aura:component> ({
handleEvent : function(component, event, helper) {
if(event.getSource().getLocalId() == "sharinpix-cmp") {
console.log("Event name: ", event.getParam("name"));
console.log("Payload: ", event.getParam("payload"));
}
}
})SharinPix Events in a Visualforce Component
SharinPix Events in a Canvas App
Last updated
Was this helpful?

