notiflix / Notiflix

Notiflix is a pure JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
https://notiflix.github.io
MIT License
648 stars 55 forks source link

CLOSED: Loading clickToClose option set to false, how to close it ? #26

Closed superawdi closed 4 years ago

superawdi commented 4 years ago

I have looked into the documentation and once you set the "clickToClose" option to false, there is no explanation of how to close it manually. So I am just using a plain javascript to remove it from "document.body". I think it would be easier and better to return a closing function when you initialize a Loading :).

furcan commented 4 years ago

Hi @superawdi

You can visit the link below to see how you can use the Loading module (add or remove etc.)

Notiflix.Loading

Also, the clickToClose is an optional setting to remove the loading indicator when it has been clicked and so, has been set as false to default. So, this option is not about the main removing approach to the Loading module.

Feel free to look at the link I already sent above.

Thanks.