JAVASCRIPT
Closing utilities
All samples are using Ink.requireModules
, please read how to use it at Ink.requireModules section
Subscribes clicks on the document.body. Whenever an element with the classes ".ink-close" or ".ink-dismiss" is clicked, this module finds an ancestor ".ink-alert" or ".ink-alert-block" element and removes it from the DOM. This module should be created only once per page.
Method name | Description |
---|---|
new Close() | Constructor |
Example
Initializing close
Demo
Click the X to close this!
Code