Skip to content

Instantly share code, notes, and snippets.

<!--
/**
* Aura Component for Service/Sales Console
* @category Lightning component
* @author Veeranjaneyulu k
* @Created On : 11-Oct-2019
**/
-->
<aura:component implements="flexipage:availableForAllPageTypes,force:hasRecordId,flexipage:availableForRecordHome" access="global">
/** Class Name : OpportunityController
* Description : This class is used get the opportunities
* Created By : Veeranjaneyulu k
* Created On : 11/10/2019
*
* Modification Log:
* --------------------------------------------------------------------------------------------------------------------------------------
* Developer Date Modification ID Description
* --------------------------------------------------------------------------------------------------------------------------------------
*
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="parentPagination">
<apiVersion>46.0</apiVersion>
<isExposed>true</isExposed>
<targets>
<target>lightning__AppPage</target>
<target>lightning__RecordPage</target>
<target>lightning__HomePage</target>
</targets>
</LightningComponentBundle>
.right {
text-align: right;
}
.left {
text-align: left;
}
.centered {
color: #999999;
font-size: 0.9rem;
text-align: center;
/**
* @category Lightning Web component Controller
* @author Veeranjaneyulu k
* @date 11-Oct-2019
**/
import {LightningElement, track, wire, api} from 'lwc';
import loadOpp from '@salesforce/apex/OpportunityController.getFunds';
import {CurrentPageReference} from 'lightning/navigation';
const PAGE_SIZE = 10;
const columns = [
<!--
/**
* Pagination Example using Offset
* @category Lightning Web component
* @author Veeranjaneyulu k
* @Date 11-oct-2019
**/
-->
<template>
<lightning-card>
/** Class Name : POC_RegionTreeController
* Description : This class is used make google api callouts and get the response
* Created By : Veera k
* Created On : 31/10/2017
*
* Modification Log:
* --------------------------------------------------------------------------------------------------------------------------------------
* Developer Date Modification ID Description
* --------------------------------------------------------------------------------------------------------------------------------------
*
({
displayOptionsLocation: function (component, searchKey , Language) {
var action = component.get("c.getAddressAutoComplete");
action.setParams({
"input": searchKey,
"langug": Language,
"types": '(regions)'
});
action.setCallback(this, function (response) {
({
loadOptions: function (component, event, helper) {
var opts = [
{ value: "de", label: "German" },
{ value: "es", label: "Spanish" },
{ value: "ta", label: "Tamil" },
{ value: "en", label: "English" }
];
component.set("v.options", opts);
},