You need to sign in to do that
Don't have an account?

How to close lightning quick action modal dialog
Hi,
I created a lightning component as a quick action button. In the component, I have a cancel button that I want it closed when user clicks.

But the problem is that I cannot find any document explain how to close the modal dialog. This is the ui code:
I created a lightning component as a quick action button. In the component, I have a cancel button that I want it closed when user clicks.
But the problem is that I cannot find any document explain how to close the modal dialog. This is the ui code:
<aura:component controller="ContactController" implements="force:lightningQuickActionWithoutHeader,force:hasRecordId" > <style> .changeRecordTypeRow { margin-top: 1.5rem; margin-bottom: 0; margin-left: 0; margin-right: 0; } .changeRecordTypeLeftColumn { float: left; text-align: right; padding-right: 1.5rem; width: 35%; font-size: .8125rem; color: rgb(84, 105, 141); } .changeRecordTypeRightColumn { float: right; text-align: left; width: 65%; } .modal-body { height:auto !important; padding:0; } .forceChatterLightningComponent .bodyWrapper{height:100%;width:100%;padding:0;box-sizing:border-box} </style> <div class="modal-header slds-modal__header"> <h2 class="title slds-text-heading--medium" >Change Contact Type</h2> </div> <div class="scrollable slds-modal__content slds-p-around--medium"> <div class="changeRecordTypeRow"> <fieldset class="slds-form-element"> <div class="changeRecordTypeLeftColumn"> <legend class="form-element__legend slds-form-element__label">Select a record type</legend> </div> <div class="changeRecordTypeRightColumn slds-form-element__control"> <span class="slds-radio"> <input type="radio" id="radio_PrimaryContact" name="recordType" /> <label class="slds-radio__label" for="radio_PrimaryContact"> <span class="slds-radio--faux"></span> <span class="slds-form-element__label">Primary Contact</span> </label> </span> <span class="slds-radio"> <input type="radio" id="radio_SecondaryContact" name="recordType" /> <label class="slds-radio__label" for="radio_SecondaryContact"> <span class="slds-radio--faux"></span> <span class="slds-form-element__label">Secondary Contact</span> </label> </span> </div> </fieldset> </div> </div> <div class="modal-footer slds-modal__footer"> <div class="forceChangeRecordTypeFooter"> <button type="button" class="slds-button slds-button--neutral .slds-modal__close" aura:id="btnCancel" > Cancel </button> <button type="button" class="slds-button slds-button--brand" aura:id="btnSave"> Save </button> </div> </div> </aura:component>Does anyone have similar experience? Thanks in advance.
Thanks for the reply. I've already found the solution.
Call this method $A.get("e.force:closeQuickAction").fire() will close the modal dialog.
Yiqin
All Answers
Try Below Code:
in Controller add Below Method
removeCSS: function(cmp, event) {
var cmpTarget = cmp.find('MainDiv');
$A.util.removeClass(cmpTarget, 'slds-modal__container');
}
Hope it will help you.
Thanks
Karthik
Thanks for the reply. I've already found the solution.
Call this method $A.get("e.force:closeQuickAction").fire() will close the modal dialog.
Yiqin
good morning saturday (https://picslash.com/good-morning-saturday/)
good morning sunday (https://picslash.com/good-morning-sunday-images/)
good evening images (https://picslash.com/good-evening-images/)
shubh ratri images (https://picslash.com/shubh-ratri-images/)
Here the list of top Movies and TV Shows APK
https://apkpureapp.com/
https://www.livenettv.vip/ (https://www.livenettv.vip/)
https://tvzion.me/ (https://tvzion.me/)
http://typhoontv.me/ (http://typhoontv.me/)
http://www.theaterplus.me/ (http://www.theaterplus.me/)
You can Visit fir More Info :- YoWhatsapp 8.12 (http://yowhatsapp.info/)
https://epilators.co/
https://bestsawhorses.com/reviews
Regards
https://www.ablogtohealth.com/
good morning images (https://www.mypixal.com/good-morning-images/)
good night images (https://www.mypixal.com/good-night-images/)
good evening images (https://www.mypixal.com/good-evening-images/)
here is a app Farming Simulator APK. It is an amazing app that can make you a real farmer in the android device. The gameplay lets you make your farm in which you can grow crops by using different equipment.
https://modsroid.com/farming-simulator-18-apk-obb-download-official-latest-version-2020WhatsApp GB (https://ogwhatsbrasil.com/gbwhatsapp-3-2), Yowhatsapp (https://ogwhatsbrasil.com/2018/06/download-yowhatsapp-apk.html) Calendário bolsa família (https://consulta-bolsafamilia.com) Brasil TV NEW APK (https://ogwhatsbrasil.com/2020/03/brasil-tv-new-apk-baixar-gratis-nova-versao.html)
Here is an example card. satta-king.online is the no1 satta king site where you can get the fastest Satta result, <a href="https://satta-king.online/satta-king-leak-number.php">Satta king leak number</a> (confirm jodi), Old <a href="https://satta-king.online/satta-king-record-chart-ghaziabad-2020.php">Satta King ghaziabad</a>, Daily leak Jodi, Desawar Jodi, <a href="https://satta-king.online/satta-king-record-chart-faridabad-2020.php">Satta king faridabad</a>, Satta record chart, <a href="https://satta-king.online/taj-satta-king-record-chart-2020.php">Satta king taj</a>, Gali Satta result, Ghaziabad Satta Result, Satta Bazar result and 100% passing fix Jodi today.
Here is an example card. satta-king.online is the no1 satta king site where you can get the fastest Satta result, Satta king leak number (https://satta-king.online/satta-king-leak-number.php)(confirm jodi), Old Satta King ghaziabad (https://satta-king.online/satta-king-record-chart-ghaziabad-2020.php), Daily leak Jodi, Desawar Jodi, Satta king faridabad, Satta record chart, Satta king taj (https://satta-king.online/taj-satta-king-record-chart-2020.php), Gali Satta result, Ghaziabad Satta Result, Satta Bazar result and 100% passing fix Jodi today.
https://www.dehlisatta.com
https://www.dehlisatta.com/faridabad-satta-king.php
https://www.dehlisatta.com/ghaziabad-satta-king.php
https://www.dehlisatta.com/gali-satta-king.php
https://www.dehlisatta.com/desawar-satta-king.php
https://www.dehlisatta.com/today-result.php
TikTok Video Downloader (https://www.onlineresizeimage.com/tiktok-video-downloader/)
online resize image (https://www.onlineresizeimage.com/)
Download (https://rozmusic.com/)
http://gbpluss.com/download-fmwhatsapp-apk/
<a href="http://gbpluss.com/download-fmwhatsapp-apk/">fm whatsapp</a>
[url=http://gbpluss.com/download-fmwhatsapp-apk/]fm whatsapp[/url]
FM Whatsapp
GB Instagram APK Download Latest Version
http://gbpluss.com/gb-instagram/
<a href="http://gbpluss.com/gb-instagram/">GB Instagram</a>
[url=http://gbpluss.com/gb-instagram/]GB Instagram[/url]
GB Instagram
Download: Gb Plus APK is the most popular version of Whatsapp
http://gbpluss.com/gb-plus-apk-download/
<a href="http://gbpluss.com/gb-plus-apk-download/">Gb Plus APK</a>
[url=http://gbpluss.com/gb-plus-apk-download/]Gb Plus APK[/url]
Gb Plus
GBWhatsApp APK Download (Official)
http://gbpluss.com/download-gbwhatsapp-apk/
<a href="http://gbpluss.com/download-gbwhatsapp-apk/">gb whatsapp apk</a>
[url=http://gbpluss.com/download-gbwhatsapp-apk/]gb whatsapp apk[/url]
Gbwhtsapp
WhatsApp Group Links (Hourly Updates) | Join, Share
http://gbpluss.com/whatsapp-group-links/
<a href="http://gbpluss.com/whatsapp-group-links/">Whatsapp Group Link</a>
[url=http://gbpluss.com/whatsapp-group-links/]Whatsapp Group Link[/url]
WhatsappGroup Links
Instagram Plus APK Download v10.14.0 For Android (25 MB) 2020
http://gbpluss.com/instagram-plus-apk/
<a href="http://gbpluss.com/instagram-plus-apk/">Instagram Plus</a>
[url=http://gbpluss.com/instagram-plus-apk/]Instagram Plus[/url]
Instagram Plus
NSWhatsApp 3d APK Download Latest Version
http://gbpluss.com/nswhatsapp-3d-apk/
<a href="http://gbpluss.com/nswhatsapp-3d-apk/">NSWhatsApp 3d</a>
[url=http://gbpluss.com/nswhatsapp-3d-apk/]NSWhatsApp 3d[/url]
NSWhatsapp
Download OGInsta APK Latest version
http://gbpluss.com/oginsta-apk/
<a href="http://gbpluss.com/oginsta-apk/">OG Insta APK</a>
[url=http://gbpluss.com/oginsta-apk/]OG Insta APK[/url]
OG Insta
Download OG Whatsapp APK Latest version
http://gbpluss.com/download-ogwhatsapp-apk/
<a href="http://gbpluss.com/download-ogwhatsapp-apk/">og whatsapp</a>
[url=http://gbpluss.com/download-ogwhatsapp-apk/]og whatsapp[/url]
OG Whatsapp
WhatsApp Aero APK is a new released latest modified application for WhatsApp
http://gbpluss.com/download-whatsapp-aero/
<a href="http://gbpluss.com/download-whatsapp-aero/">Whatsapp Aero</a>
[url=http://gbpluss.com/download-whatsapp-aero/]Whatsapp Aero[/url]
WhatsApp Aero
WhatsApp Mix APK is known as one of a popular mod of WhatsApp.
http://gbpluss.com/whatsapp-mix-apk-download/
<a href="http://gbpluss.com/whatsapp-mix-apk-download/">safe use</a>
[url=http://gbpluss.com/whatsapp-mix-apk-download/]safe use[/url]
WhatsApp Mix
WhatsApp Plus is a very popular modded version of WhatsApp
http://gbpluss.com/latest-whatsapp-plus-download/
<a href="http://gbpluss.com/latest-whatsapp-plus-download/">whatsapp plus</a>
[url=http://gbpluss.com/latest-whatsapp-plus-download/]whatsapp plus[/url]
Whatsapp Plus
WhatsApp Transparent (GBplus) APK Download
http://gbpluss.com/gbplus-whatsapp-transparent/
<a href="http://gbpluss.com/gbplus-whatsapp-transparent/">WhatsApp Transparent</a>
[url=http://gbpluss.com/gbplus-whatsapp-transparent/]WhatsApp Transparent[/url]
WhatsApp Transparent
Download YoWhatsapp APK latest version from our site and experience
some of the best features of Whatsapp
http://gbpluss.com/latest-yowhatsapp-apk/
<a href="http://gbpluss.com/latest-yowhatsapp-apk/">Yo whatsapp</a>
[url=http://gbpluss.com/latest-yowhatsapp-apk/]Yo whatsapp[/url]
Yo Whatsapp
http://gbpluss.com
<a href="http://gbpluss.com">Gbpluss</a>
[url=http://gbpluss.com]Gb Pluss[/url]
Happy Diwali Wishes (https://wishesninety.com/best-happy-diwali-wishes-diwali-hd-images-quotes-messages-and-sms/)
Happy Independence Day (https://wishesninety.com/best-happy-independence-day-wishes-messages-and-images/)
Happy Dussehra Wishes (https://wishesninety.com/happy-dussehra-best-wishes-messages-hd-images/)
Happy Teachers day (https://wishesninety.com/happy-teachers-day-best-sweet-wishes-images-for-best-teacher/)
Happy Father's Day (https://wishesninety.com/happy-fathers-day-wishes-status-for-dad/)
Condolence Message for death (https://wishesninety.com/heartfelt-condolence-message-on-death/)
Raksha Bandhan Wishes (https://wishesninety.com/raksha-bandhan-quotes-and-wishes/)
Mp3 Download (http://abokiplay.com)
Download Latest Android Mod Apk From ModLooters (https://modlooters.com). This Is The Best Modded Apk Site Of 2020, Mod Looters Offer most popular Modded Games and Android Apps For Free.
Wynk Music MOD apk (https://www.wynkmusic.info/)
GB WhatsApp (https://www.gbwaplus.com/gb-whatsapp/)
WhatsApp Plus (https://www.gbwaplus.com/whatsapp-plus/)
YO WhatsApp (https://www.gbwaplus.com/yo-whatsapp/)
https://sggreek.com/cyrose-movies-site-like-cyro-se-g2g/ (https://sggreek.com/cyrose-movies-site-like-cyro-se-g2g/" target="_blank)
Best Programming Language for Artificial Intelligence (https://techseoblog.com/best-programming-language-for-artificial-intelligence/)
It is the Best Programming Language for Artificial Intelligence GTA Vice City APK (https://apkcunk.com/gta-vice-city-apk/)
Check out our post about Fm whatsapp 2 (https://www.techsparkle.com/yo-whatsapp-download/), OGInstagram (https://www.techsparkle.com/oginstagram/), GbWhatsapp (https://www.techsparkle.com/gbwhatsapp-apk-download/), YOWhatsapp (https://www.techsparkle.com/yo-whatsapp-download/)
https://thenamecombiner.com/
Regards,
you will be a great author and also you can visit my webite. Lottery Sambad (https://lotterysambaddear.in)
added something worthwhile to the world wide web!..
Nagaland State Lottery (https://nagalandstatelottery.in)
will continue subsequent to sharing such an extraordinary post.
Dhankesari (https://dhankesari.org)
It is the Best Programming Language for for apk websites like gb whatapps or whatapps plus (https://thegbapp.com/) you can download( https://thegbapp.com/gb-whatsapp-apk/ )
check out all the latest transfer news (https://alltransfernews.com/)
Also check out the best android news, reviews, tips and tricks (https://www.bestcrawl.com/)
Thanks. you are best source of knowledge
لعبة من سيربح المليون (http://www.winmilliongame.com)
لعبة جاتا (http://www.gtagame100.com) - صب واي سيرفرس (http://www.subway-game.com) - زوما (http://www.zumagame100.com) - العاب كلاش (http://www.clash-games.com)
This problem is not big as downloading the right YOWhatsApp Anti Ban (https://getyowhatsapp.com) apk if you want you can download it here.
Spotify Premium APK (https://premiumapkspot.com)
Deezer Premium APK (https://premiumapkspot.com/deezer-music-player/)
https://naslemusic.com/submit
Unfollow on twitch (https://www.infonarrator.com/how-to-unfollow-on-twitch/)
this is best information which you have share with us via discussion,we will share it to the users of welding zilla (https://weldingzilla.com/).
Read our guides about the
Best welding helemts (https://weldingzilla.com/best-welding-helmets-2021/) 2021
https://weldingzilla.com/best-tig-welders-under-1000-2021-top-picks-reviews/