Skip to content

Instantly share code, notes, and snippets.

View karkranikhil's full-sized avatar
🎯
Focusing

nikhil karkra karkranikhil

🎯
Focusing
View GitHub Profile
@karkranikhil
karkranikhil / Salesforce JS 1 certification session 1
Created July 5, 2020 03:02
Salesforce JavaScript Developer 1 certification series
// The console.log() is a function that writes a message to log on the debugging console
// Names can contain letters, digits, underscores, and dollar signs.
// No limit o the length of the variable name
// Names can begin with letter, $ and _
// Reserved words(like switch, if else) cannot be used as names
// console.log(null+'10');
// var name = "Nikhil"
// var age = 23
<iframe src="https://www.youtube.com/embed/Xk9QltVrOxc?modestbranding=1&autostart=1&controls=1&showinfo=0&disablekb=0&rel=0" frameborder="0" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
@karkranikhil
karkranikhil / DemoApp.cmp
Created April 22, 2020 13:47
Design lightning
<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
<div>
<div class="wrapper">
<div>
<label>Sales KPI Navigation</label>
<div class="d-flex">
<div>
<input type="checkbox" name="full" id="full" value="full"/>
@karkranikhil
karkranikhil / templateLoopingForEach.css
Created March 30, 2020 13:07
TemplateLoopingForEach
.list-group {
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
padding-left: 0;
margin-bottom: 0;
width: 50%;
}
.list-group-item:first-child {
.list-group {
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
padding-left: 0;
margin-bottom: 0;
width: 50%;
}
.list-group-item:first-child {
<template>
<lightning-card title="one way data binding demo" icon-name="custom:custom1">
<div class="slds-p-around_medium">
<h1>My full name is {fullname}</h1>
</div>
</lightning-card>
<lightning-card title="Two way data binding demo" icon-name="custom:custom2">
<div class="slds-p-around_medium">
<lightning-input
@karkranikhil
karkranikhil / Arrow function
Created March 20, 2020 00:15
Javascript for lwc
// Before arrow function
var obj = {
id: 42,
counter: function counter() {
setTimeout(function() {
console.log(this.id);
}, 1000);
}
};
@karkranikhil
karkranikhil / xlsx.full.min.js
Created January 13, 2020 12:12
XLSX for Salesforce lightning web
This file has been truncated, but you can view the full file.
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
var DO_NOT_EXPORT_CODEPAGE=true;var DO_NOT_EXPORT_JSZIP=true;(function(e){if("object"==typeof exports&&"undefined"!=typeof module&&"undefined"==typeof DO_NOT_EXPORT_JSZIP)module.exports=e();else if("function"==typeof define&&define.amd&&"undefined"==typeof DO_NOT_EXPORT_JSZIP){JSZipSync=e();define([],e)}else{var r;"undefined"!=typeof window?r=window:"undefined"!=typeof global?r=global:"undefined"!=typeof $&&$.global?r=$.global:"undefined"!=typeof self&&(r=self),r.JSZipSync=e()}})(function(){var e,r,t;return function a(e,r,t){function n(s,f){if(!r[s]){if(!e[s]){var o=typeof require=="function"&&require;if(!f&&o)return o(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(r){var t=e[s][1][r];return n(t?t:r)},l,l.exports,a,e,r,t)}return r[s].exports}var i=typeof require=="function"&&require;for(var s=0;s<t.length;s++)n(t[s]);return n}({1:[function(e,r,t){"use strict";var a="AB
[
"After Dark in Central Park",
"Boarding School Girls' Pajama Parade",
"Buffalo Bill's Wild West Parad",
"Caught",
"Clowns Spinning Hats",
"Capture of Boer Battery by British",
"The Enchanted Drawing",
"Feeding Sea Lions",
"How to Make a Fat Wife Out of Two Lean Ones",
<a href="maincontent" class="skip-link">skip to main content</a>
....
<div class="navigation">....</div>
....
<div id="maincontent" tabindex="-1">....</div>