SHARE
TWEET

Untitled

a guest Jul 20th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $A.createComponent(
  2.     "aura:unescapedHtml", {
  3.         "value": '<div class="slds-notify_toast slds-theme_default" role="status" style="width: 97%;">' +
  4.             '<i class="fa fa-ban fa-lg" style="color:white"></i>&nbsp;&nbsp;<h2 class="slds-text-heading_small ">' +
  5.             $A.get("$Label.c.ConfirmRemoval") + '</h2></div>' +
  6.             '<button type="button" class="btn btn-default" data-dismiss="modal"n' +
  7.             'onclick="{!c.handleCancel)">$A.get("$Label.Cancel")</button>n' +
  8.             '<button type="button" class="btn btn-primary" onclick="{!c.removeFromFile}">$A.get("$Label.Yes"</button>'
  9.     },
  10.     function(objModalHTMLCode, strStatus){
  11.         if (strStatus === "SUCCESS") {
  12.             objModalLibrary.showCustomModal({
  13.                 header: "Remove File",
  14.                 body: objModalHTMLCode,
  15.                 showCloseButton: true
  16.             });
  17.         }
  18.     }
  19. );
  20.  
  21. handleCancel : function(objComponent, objEvent, objHelper) {
  22.     //closes the modal or popover from the component
  23.     objComponent.find("popuplib").notifyClose();
  24. },
  25.  
  26. removeFromFile : function(objComponent, objEvent, objHelper) {
  27.     //closes the modal or popover from the component
  28.     console.log('objComponent');
  29. },
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top