Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- This VF page hosts a Lightning Component. -->
- <apex:page standardcontroller="Opportunity" recordSetVar="cons"
- showHeader="true"
- sidebar="false"
- standardStylesheets="false">
- <!-- Load Lightning dependencies -->
- <apex:includeLightning />
- <div class="slds">
- <!-- Target div for the Lightning component -->
- <div id="customObjectEdit"></div>
- </div>
- <script>
- var recordId = '0030v000001VfqhAAC';
- $Lightning.use("c:createLtgOutApp", function() {
- var attributes = {
- recordId: recordId
- };
- var targetElementId = 'customObjectEdit';
- $Lightning.createComponent('c:createLtgOut', attributes, targetElementId,
- function(cmp) {
- // At this point the component has been created and loaded
- });
- });
- </script>
- </apex:page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement