Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <aura:Iteration items="{!v.lstProject}" var="item">
- <lightning:card iconName="standard:scan_card" >
- <aura:set attribute="title" >
- <a href="" onClick="{!c.navigateToProject}">{!item.project.SFDC_Project_Name__c}</a>
- </aura:set>
- navigateToProject : function(component, event, helper) {
- var navEvent = $A.get('e.force:navigateToSObject');
- var project = component.get("v.item");
- console.log('project event ' + project.id);
- navEvent.setParams({
- "recordId": "a095B000006WLy5QAG", --- i hard-coded this for testing purpose but didn't work. also the above console.log was not displayed at all.
- "slideDevName": "detail"
- });
- navEvent.fire();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement