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
<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
<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
<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: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="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
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
<aura:component implements="forceCommunity:availableForAllPageTypes"> | |
<aura:attribute name="supportURL" type="string" default="/s/contactsupport"/> | |
<ui:button aura:id="button" buttonTitle="Contact Support" label="Contact Support" press="{!c.navigate}" class="uiButton forceCommunityAskCommunity"/> | |
</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
ar nforce = require('nforce'); | |
var express = require('express'); | |
var port = process.env.PORT || 3000; | |
var org = nforce.createConnection({ | |
clientId: '3MVG9uudbyLbNPZMk0vYn7ICarLW4qV5bLdL.KqYws.i1.oN99y14Skth6utXg0nwCuPpSMtr9lB7HIOx6M65', | |
clientSecret: '6326007125179395206', | |
redirectUri: 'https://protected-fortress-46904.herokuapp.com/oauth/_callback', | |
apiVersion: 'v34.0', // optional, defaults to current salesforce API version | |
environment: 'production', // optional, salesforce 'sandbox' or 'production', production default |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<% include ../partials/ldOut %> | |
</head> | |
<body class="slds"> | |
<header> | |
</header> | |
<main> | |
<div > |