Skip to content
Advertisement

How to programmatically close notify.js notification?

In the following sample I am trying to close an opened notification forcefully by clicking the button as suggeseted in the notify.js API advanced example, how can this be done?

JavaScript
JavaScript

Advertisement

Answer

You have to trigger notify-hide event for div which represents notify element.

JavaScript
JavaScript

Here is the snippet which shows how looks DOM structure:

JavaScript
Advertisement