This file contains 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
{ | |
doInit : function(component, event , helper){ | |
var action = cmp.get("c.getCurrentUser"); | |
action.setCallback(this, function(response) { | |
var state = response.getState(); | |
if (state === "SUCCESS") { | |
component.set("v.user", response.getReturnValue()); | |
} | |
else { |
This file contains 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
/** | |
* @description The HTTPUtil class provides a set of methods to perform HTTP requests to a given endpoint | |
* with specified headers, url parameters, and payload. It also allows encoding of url parameters, | |
* getting the response object, and getting the response headers | |
**/ | |
public with sharing class HTTPUtil { | |
public transient HttpResponse response; | |
private String currentEndpoint; | |
private String baseEndpoint; | |
private Map<String, String> headers; |
This file contains 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
/* eslint-disable @lwc/lwc/no-async-operation */ | |
export default class Debounce extends LightningElement { | |
doApiCallDebounced; | |
connectedCallback() { | |
// generate the debounce handler | |
this.doApiCallDebounced = this.debounce(this.doApiCall, 1000); | |
} |
This file contains 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 standardController="Case" sidebar="false" docType="html-5.0"> | |
<style> | |
.glow{ | |
animation: flashBg 0.9s; | |
-webkit-animation: flashBg 0.9s alternate infinite; | |
} | |
@keyframes flashBg | |
{ | |
from { | |
border: 3px solid #ff6161; |
This file contains 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 > | |
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"/> | |
<c:sObjectRemote /> | |
<script> | |
var vfApp = angular.module('vfApp',[]); | |
vfApp.controller('vfappController',function($scope){ | |
$scope.accounts = [] | |
$scope.getAccounts = function(){ | |
sObject.query('SELECT Id,Name,Site,Type,Phone FROM Account LIMIT 100',function(result){ | |
$scope.accounts = result; |
This file contains 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 > | |
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"/> | |
<c:sObjectRemote /> | |
<script> | |
var vfApp = angular.module('vfApp',[]); | |
vfApp.controller('vfappController',function($scope){ | |
$scope.accounts = [] | |
$scope.getAccounts = function(){ | |
sObject.query('SELECT Id,Name,Site,Type,Phone FROM Account LIMIT 100',function(result){ | |
$scope.accounts = result; |
This file contains 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 standardStylesheets="true" docType="html-5.0" sidebar="false"> | |
<apex:form > | |
<c:customrtf targetclass="mytextarea" rendered="true" toolbar="full"/> | |
<apex:inputTextarea styleClass="mytextarea" richText="false"/> | |
</apex:form> | |
</apex:page> |
This file contains 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 controller="PBE1KRemoting_Con"> | |
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"/> | |
<apex:includeScript value="https://rawgithub.com/BorisMoore/jsrender/master/jsrender.min.js"/> | |
<script> | |
function getContacts(callback){ | |
Visualforce.remoting.Manager.invokeAction( | |
'{!$RemoteAction.PBE1KRemoting_Con.getContacts}', | |
function(result, event){ |
This file contains 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
<c:textscanner value="{!TEXT_TO_SCAN}"/> |
This file contains 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 standardController="Case" sidebar="false"> | |
<c:textscanner value="{!Case.Description}"/> | |
</apex:page> |
NewerOlder