Skip to content

Instantly share code, notes, and snippets.

@forcemantis
Created May 23, 2018 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forcemantis/7ddffd87324e640b0a7a8dbdce9a2df8 to your computer and use it in GitHub Desktop.
Save forcemantis/7ddffd87324e640b0a7a8dbdce9a2df8 to your computer and use it in GitHub Desktop.
<apex:page standardStylesheets="false" applyBodyTag="false" applyHtmlTag="false" showHeader="false" sidebar="false">
<html>
<script src="https://kb-developer-edition.na50.force.com/lightning/lightning.out.js"></script>
<script>
$Lightning.use("c:TrailheadHelp", // name of the Lightning app
function() { // Callback once framework and app loaded
$Lightning.createComponent(
"c:KBAndSupport", // top-level component of your app
{
firstName:'Amit',
lastName:'Jain',
emailAddress:'amit.jain@metacube.com',
companyName:'Metacube Software Pvt. Ltd.',
referrerURL: 'https://trailhead.salesforce.com/modules/entitlements/units/entitlements_starting'
}, // attributes to set on the component when created
"lightningComponent", // the DOM location to insert the component
function(cmp) {
// callback when component is created and active on the page
}
);
},
'https://kb-developer-edition.na50.force.com/' // Community endpoint
);
</script>
<body style="padding:0; margin:0">
<div id="lightningComponent" ></div>
</body>
</html>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment