Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOLVED: how to close or dismiss previous notify #20

Closed
suryansh4u opened this issue May 4, 2020 · 1 comment
Closed

SOLVED: how to close or dismiss previous notify #20

suryansh4u opened this issue May 4, 2020 · 1 comment
Labels
question Further information is requested

Comments

@suryansh4u
Copy link

i want to show only one notify at one time on page, when appear new notify previous notify automatically close

@furcan
Copy link
Collaborator

furcan commented May 4, 2020

Hi,

Firstly thanks for using the Notiflix.

You can use the "showOnlyTheLastOne" option for this request.

Also, please feel free to look at the documentation page for this and all other options for the Notify module.
https://www.notiflix.com/documentation/#DocsNotify

So;
You can initialize first as below.

Notiflix.Notify.Init({
  showOnlyTheLastOne: true,
});

Thank you.

@furcan furcan added the question Further information is requested label May 4, 2020
@furcan furcan changed the title how to close or dismiss previous notify SOLVED: how to close or dismiss previous notify May 4, 2020
@furcan furcan closed this as completed May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants