Created
November 29, 2017 18:57
-
-
Save dsharrison/a923568a2f3658abe4bb35f5ce089578 to your computer and use it in GitHub Desktop.
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
<aura:application extends="ltng:outApp" > | |
<aura:dependency resource="c:recordViewRepro" /> | |
</aura:application> |
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
<aura:component access="PUBLIC"> | |
<span>Begin Record View Form</span> | |
<!-- NOTE: Replace the record Id below with a record Id from your org --> | |
<lightning:recordViewForm recordId="0064400000nL1bT" objectApiName="Opportunity"> | |
<lightning:outputField fieldName="Name" /> | |
</lightning:recordViewForm> | |
<span>End Record View Form</span> | |
</aura:component> |
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:includeLightning/> | |
<div id="ltng"> | |
</div> | |
<script> | |
$Lightning.use('c:LightningOutRecordView', function() { | |
$Lightning.createComponent('c:recordViewRepro', | |
{}, | |
'ltng', | |
function(cmp) { | |
// do some stuff | |
}); | |
}); | |
</script> | |
</apex:page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment