Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <!-- This VF page hosts a Lightning Component. -->
  2. <apex:page standardcontroller="Opportunity" recordSetVar="cons"
  3. showHeader="true"
  4. sidebar="false"
  5. standardStylesheets="false">
  6.  
  7. <!-- Load Lightning dependencies -->
  8. <apex:includeLightning />
  9.  
  10. <div class="slds">
  11. <!-- Target div for the Lightning component -->
  12. <div id="customObjectEdit"></div>
  13. </div>
  14.  
  15. <script>
  16. var recordId = '0030v000001VfqhAAC';
  17.  
  18. $Lightning.use("c:createLtgOutApp", function() {
  19. var attributes = {
  20. recordId: recordId
  21. };
  22.  
  23. var targetElementId = 'customObjectEdit';
  24.  
  25. $Lightning.createComponent('c:createLtgOut', attributes, targetElementId,
  26. function(cmp) {
  27. // At this point the component has been created and loaded
  28. });
  29. });
  30. </script>
  31. </apex:page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement