简体   繁体   English

如何在 Notiflix.Loading() 叠加层顶部添加按钮(关闭/停止)?

[英]How can I add button (close/stop) on top of the Notiflix.Loading() overlay?

I am using "notiflix" library in my project in which I've used notiflix.loading.pulse() for a long running process and which is perfectly okay but I need a Button (close/stop process) upon overlay of that notiflix.loading().我在我的项目中使用了“notiflix”库,其中我使用了notiflix.loading.pulse()进行了长时间运行的过程,这完全没问题,但我需要一个按钮(关闭/停止过程)覆盖那个 notiflix。加载()。

How can I customise overlay and put Button on it?如何自定义叠加层并在其上放置 Button? (Please refer below image which depicts overlay coming on whole page while using notiflix.loading.pulse() , I just want to put HTML button on this overlay) (请参阅下图,它描绘了在使用notiflix.loading.pulse()时整个页面上的叠加,我只想在此叠加上放置 HTML 按钮)

Please refer this link for notiflix请参阅此链接以获取notiflix

在此处输入图片说明

I don't know exactly what you mean, but you can use the function我不知道你的意思,但你可以使用该功能

Notiflix.Loading.Remove();

And then the loading screen dissapears, i hope my answer is useful :).然后加载屏幕消失了,我希望我的回答有用:)。

Also you can read examples in readme.md file in the github repo.您也可以阅读 github 存储库中 readme.md 文件中的示例。 https://github.com/notiflix/Notiflix https://github.com/notiflix/Notiflix

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM