I create a button link to lightning component,How to close a Salesforce lightning tab like below by use javascript ?

enter image description here

  • Assuming this lightning component is linked to a quick action, you can use the $A.get("e.force:closeQuickAction").fire(); to close the component.
    – Sam
    Jun 16 '18 at 16:19
  • Think you so much!
    – One
    Jun 16 '18 at 16:53
  • @Anamadeya It seems your comment solved the issue, please add your comment as answer(With some more details maybe) so that this question can be closed.
    – Mr.Frodo
    Jun 17 '18 at 5:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.