Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $A.createComponent(
- "aura:unescapedHtml", {
- "value": '<div class="slds-notify_toast slds-theme_default" role="status" style="width: 97%;">' +
- '<i class="fa fa-ban fa-lg" style="color:white"></i> <h2 class="slds-text-heading_small ">' +
- $A.get("$Label.c.ConfirmRemoval") + '</h2></div>' +
- '<button type="button" class="btn btn-default" data-dismiss="modal"n' +
- 'onclick="{!c.handleCancel)">$A.get("$Label.Cancel")</button>n' +
- '<button type="button" class="btn btn-primary" onclick="{!c.removeFromFile}">$A.get("$Label.Yes"</button>'
- },
- function(objModalHTMLCode, strStatus){
- if (strStatus === "SUCCESS") {
- objModalLibrary.showCustomModal({
- header: "Remove File",
- body: objModalHTMLCode,
- showCloseButton: true
- });
- }
- }
- );
- handleCancel : function(objComponent, objEvent, objHelper) {
- //closes the modal or popover from the component
- objComponent.find("popuplib").notifyClose();
- },
- removeFromFile : function(objComponent, objEvent, objHelper) {
- //closes the modal or popover from the component
- console.log('objComponent');
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement