Guest User

Untitled

a guest
Feb 22nd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <apex:page standardController="Opportunity">
  2. <apex:includeScript value="/lightning/lightning.out.js" />
  3. <script>
  4. var profile = '{!$Profile.Name}';
  5. $Lightning.use("c:ModalApp", function() {
  6. $Lightning.createComponent(
  7. "c:Modal",
  8. { "recordId" : '{!$CurrentPage.parameters.oppId}',
  9. "profile" : profile},
  10. "theOpp",
  11. function(cmp) {
  12. console.log("Component created!");
  13. console.log(cmp);
  14. });
  15. });
  16. </script>
  17. <div id="theOpp"></div>
Add Comment
Please, Sign In to add comment