This file contains hidden or 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
<aura:component implements="forceCommunity:availableForAllPageTypes"> | |
</aura:component> |
This file contains hidden or 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
<aura:component implements="flexipage:availableForAllPageTypes"> | |
</aura:component> |
This file contains hidden or 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
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:hasSObjectName"> | |
</aura:component> |
This file contains hidden or 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
<aura:component implements="forceCommunity:availableForAllPageTypes" controller="FuncommunityController"> | |
<aura:attribute name="topic" type="String" /> | |
<aura:handler name="init" value="{!this}" action="{!c.getTopicName}" /> | |
<div> | |
<h1>TOPIC FROM SERVER {!v.topic}</h1> | |
</div> | |
</aura:component> |
This file contains hidden or 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
({ | |
getTopicName: function(component, event, helper) { | |
helper.getTopicName(component); | |
} | |
}) |
This file contains hidden or 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
({ | |
getTopicName: function(component) { | |
console.log('here'); | |
var action = component.get("c.fetchTopicName"); | |
var self = this; | |
var topicvar = component.get("v.topic"); | |
console.log(topicvar); | |
action.setParams({ | |
"topicname": topicvar | |
}); |
This file contains hidden or 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
<design:component> | |
<design:attribute name="topic" label="Topic Name" description="Please add Topic Name" /> | |
</design:component> |
This file contains hidden or 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
public class FuncommunityController { | |
@AuraEnabled | |
public static String fetchTopicName(String topicname){ | |
system.debug(topicname); | |
return topicname; | |
} | |
} |
This file contains hidden or 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
<div class="slds"> | |
<div aria-hidden="true" role="dialog" class="slds-modal slds-modal--large slds-fade-in-hide" aura:id="modaldialog"> | |
</div> | |
<!--Other markups--> | |
<div class="slds-backdrop slds-backdrop--hide" aura:id="backdrop"> | |
</div> |
This file contains hidden or 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
({ | |
showOppmodal: function(component, event, helper) { | |
//Toggle CSS styles for opening Modal | |
helper.toggleClass(component,'backdrop','slds-backdrop--'); | |
helper.toggleClass(component,'modaldialog','slds-fade-in-'); | |
helper.getopportunitylst(component,event); | |
}, | |
hideModal : function(component, event, helper) { | |
//Toggle CSS styles for hiding Modal |