You need to sign in to do that
Don't have an account?
Jayant Kumar Jaiswal
e.force:closeQuickAction not working in the callback method of showNotice
On click of OK in showNotice, I want the whole Lightning component configured in quick action to close. I'm using below code:
cmp.find('createQifNitify').showNotice({
"variant": "error",
"header": "Create QIF",
"message": validationMessageString,
closeCallback: function() {
alert('You closed the alert!');
$A.get("e.force:closeQuickAction").fire();
}
});
Is is possible this way?
cmp.find('createQifNitify').showNotice({
"variant": "error",
"header": "Create QIF",
"message": validationMessageString,
closeCallback: function() {
alert('You closed the alert!');
$A.get("e.force:closeQuickAction").fire();
}
});
Is is possible this way?
({
doInit : function(component, event, helper) {
var closeQuickAction = $A.get("e.force:closeQuickAction");
component.find('notification').showNotice({
"variant": "error",
"header": "Create QIF",
"message": validationMessageString,
"closeCallback": function(){
closeQuickAction.fire();
}
});
}
})