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 with sharing class SearchController { | |
@AuraEnabled | |
public static list<UserWrapper> searchPeople(String searchString){ | |
list<UserWrapper> lstusers = new list<UserWrapper>(); | |
Id communityId = Network.getNetworkId(); | |
Id networkId = [Select Name, Id From Network where Id =:;//Fetch the community Id of the Current User | |
searchString = '%' + searchString + '%'; | |
//Get User records as per search keyterm | |
map<id,User> mapIdByUser = new map<id,User>([Select Id, |
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
<apex:page showHeader="false" sidebar="false"> | |
<apex:includeLightning /> | |
<div id="lightning"> Hello world VF ..!!! </div> | |
<script> | |
$Lightning.use("c:myEventApp", function() { | |
$Lightning.createComponent("c:myComponent", {}, "lightning", function(){ | |
$A.eventService.addHandler({ "event": "c:myEvent", "handler" : visualForceFunction}); | |
}); |
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> | |
<div> Hello World !!!! </div> | |
<aura:registerEvent name="myevent" type="c:myEvent" /> | |
<ui:button label="fireEvent" press="{!c.fireevent}" /> | |
</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
<apex:page showHeader="true" sidebar="true"> | |
<apex:includeLightning /> | |
<div id="lightning"> hello World VF!! </div> | |
<script> | |
$Lightning.use("c:sampleApp", function() { | |
$Lightning.createComponent("c:sampleComponent", {}, | |
"lightning", | |
function(cmp) { | |
var myExternalEvent; | |
myExternalEvent = $A.get("e.c:sampleEvent"); |
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:application access="GLOBAL" extends="ltng:outApp"> | |
<aura:dependency resource="c:sampleComponent" /> | |
</aura:application> |
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:event type="APPLICATION"> | |
<aura:attribute name="userId" type="String"/> | |
</aura:event> |
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
({ | |
toggleClass: function(component,componentId,className) { | |
var modal = component.find(componentId); | |
$A.util.removeClass(modal,className+'hide'); | |
$A.util.addClass(modal,className+'open'); | |
}, | |
toggleClassInverse: function(component,componentId,className) { | |
var modal = component.find(componentId); | |
$A.util.addClass(modal,className+'hide'); |
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 |
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
public class FuncommunityController { | |
@AuraEnabled | |
public static String fetchTopicName(String topicname){ | |
system.debug(topicname); | |
return topicname; | |
} | |
} |